Example usage for org.lwjgl.opengl ARBGeometryShader4 glProgramParameteriARB

List of usage examples for org.lwjgl.opengl ARBGeometryShader4 glProgramParameteriARB

Introduction

In this page you can find the example usage for org.lwjgl.opengl ARBGeometryShader4 glProgramParameteriARB.

Prototype

public static native void glProgramParameteriARB(@NativeType("GLuint") int program,
        @NativeType("GLenum") int pname, @NativeType("GLint") int value);

Source Link

Document

Sets a program object parameter.

Usage

From source file:jpcsp.graphics.RE.RenderingEngineLwjgl.java

License:Open Source License

@Override
public void setProgramParameter(int program, int parameter, int value) {
    if (parameter == RE_GEOMETRY_INPUT_TYPE || parameter == RE_GEOMETRY_OUTPUT_TYPE) {
        value = primitiveToGL[value];/* w w  w  .j a va2s.  c  o m*/
    }
    ARBGeometryShader4.glProgramParameteriARB(program, programParameterToGL[parameter], value);
}