pub trait GL_4_1 {
Show 89 methods
// Required methods
fn glGetError(&self) -> GLenum;
fn glReleaseShaderCompiler(&self) -> Result<(), GLCoreError>;
fn glShaderBinary(
&self,
count: GLsizei,
shaders: *const GLuint,
binaryFormat: GLenum,
binary: *const c_void,
length: GLsizei,
) -> Result<(), GLCoreError>;
fn glGetShaderPrecisionFormat(
&self,
shadertype: GLenum,
precisiontype: GLenum,
range: *mut GLint,
precision: *mut GLint,
) -> Result<(), GLCoreError>;
fn glDepthRangef(&self, n: GLfloat, f: GLfloat) -> Result<(), GLCoreError>;
fn glClearDepthf(&self, d: GLfloat) -> Result<(), GLCoreError>;
fn glGetProgramBinary(
&self,
program: GLuint,
bufSize: GLsizei,
length: *mut GLsizei,
binaryFormat: *mut GLenum,
binary: *mut c_void,
) -> Result<(), GLCoreError>;
fn glProgramBinary(
&self,
program: GLuint,
binaryFormat: GLenum,
binary: *const c_void,
length: GLsizei,
) -> Result<(), GLCoreError>;
fn glProgramParameteri(
&self,
program: GLuint,
pname: GLenum,
value: GLint,
) -> Result<(), GLCoreError>;
fn glUseProgramStages(
&self,
pipeline: GLuint,
stages: GLbitfield,
program: GLuint,
) -> Result<(), GLCoreError>;
fn glActiveShaderProgram(
&self,
pipeline: GLuint,
program: GLuint,
) -> Result<(), GLCoreError>;
fn glCreateShaderProgramv(
&self,
type_: GLenum,
count: GLsizei,
strings: *const *const GLchar,
) -> Result<GLuint, GLCoreError>;
fn glBindProgramPipeline(&self, pipeline: GLuint) -> Result<(), GLCoreError>;
fn glDeleteProgramPipelines(
&self,
n: GLsizei,
pipelines: *const GLuint,
) -> Result<(), GLCoreError>;
fn glGenProgramPipelines(
&self,
n: GLsizei,
pipelines: *mut GLuint,
) -> Result<(), GLCoreError>;
fn glIsProgramPipeline(
&self,
pipeline: GLuint,
) -> Result<GLboolean, GLCoreError>;
fn glGetProgramPipelineiv(
&self,
pipeline: GLuint,
pname: GLenum,
params: *mut GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform1fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform1d(
&self,
program: GLuint,
location: GLint,
v0: GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform1dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform1ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform1uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
v1: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
v1: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform2d(
&self,
program: GLuint,
location: GLint,
v0: GLdouble,
v1: GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform2dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform2ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
v1: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform2uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
v1: GLint,
v2: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
v1: GLfloat,
v2: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform3d(
&self,
program: GLuint,
location: GLint,
v0: GLdouble,
v1: GLdouble,
v2: GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform3dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform3ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
v1: GLuint,
v2: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform3uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4i(
&self,
program: GLuint,
location: GLint,
v0: GLint,
v1: GLint,
v2: GLint,
v3: GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4iv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4f(
&self,
program: GLuint,
location: GLint,
v0: GLfloat,
v1: GLfloat,
v2: GLfloat,
v3: GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniform4d(
&self,
program: GLuint,
location: GLint,
v0: GLdouble,
v1: GLdouble,
v2: GLdouble,
v3: GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform4dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniform4ui(
&self,
program: GLuint,
location: GLint,
v0: GLuint,
v1: GLuint,
v2: GLuint,
v3: GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniform4uiv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
value: *const GLuint,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2x3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3x2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2x4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4x2fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3x4fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4x3fv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2x3dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3x2dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix2x4dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4x2dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix3x4dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glProgramUniformMatrix4x3dv(
&self,
program: GLuint,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glValidateProgramPipeline(
&self,
pipeline: GLuint,
) -> Result<(), GLCoreError>;
fn glGetProgramPipelineInfoLog(
&self,
pipeline: GLuint,
bufSize: GLsizei,
length: *mut GLsizei,
infoLog: *mut GLchar,
) -> Result<(), GLCoreError>;
fn glVertexAttribL1d(
&self,
index: GLuint,
x: GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribL2d(
&self,
index: GLuint,
x: GLdouble,
y: GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribL3d(
&self,
index: GLuint,
x: GLdouble,
y: GLdouble,
z: GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribL4d(
&self,
index: GLuint,
x: GLdouble,
y: GLdouble,
z: GLdouble,
w: GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribL1dv(
&self,
index: GLuint,
v: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribL2dv(
&self,
index: GLuint,
v: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribL3dv(
&self,
index: GLuint,
v: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribL4dv(
&self,
index: GLuint,
v: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glVertexAttribLPointer(
&self,
index: GLuint,
size: GLint,
type_: GLenum,
stride: GLsizei,
pointer: *const c_void,
) -> Result<(), GLCoreError>;
fn glGetVertexAttribLdv(
&self,
index: GLuint,
pname: GLenum,
params: *mut GLdouble,
) -> Result<(), GLCoreError>;
fn glViewportArrayv(
&self,
first: GLuint,
count: GLsizei,
v: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glViewportIndexedf(
&self,
index: GLuint,
x: GLfloat,
y: GLfloat,
w: GLfloat,
h: GLfloat,
) -> Result<(), GLCoreError>;
fn glViewportIndexedfv(
&self,
index: GLuint,
v: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glScissorArrayv(
&self,
first: GLuint,
count: GLsizei,
v: *const GLint,
) -> Result<(), GLCoreError>;
fn glScissorIndexed(
&self,
index: GLuint,
left: GLint,
bottom: GLint,
width: GLsizei,
height: GLsizei,
) -> Result<(), GLCoreError>;
fn glScissorIndexedv(
&self,
index: GLuint,
v: *const GLint,
) -> Result<(), GLCoreError>;
fn glDepthRangeArrayv(
&self,
first: GLuint,
count: GLsizei,
v: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glDepthRangeIndexed(
&self,
index: GLuint,
n: GLdouble,
f: GLdouble,
) -> Result<(), GLCoreError>;
fn glGetFloati_v(
&self,
target: GLenum,
index: GLuint,
data: *mut GLfloat,
) -> Result<(), GLCoreError>;
fn glGetDoublei_v(
&self,
target: GLenum,
index: GLuint,
data: *mut GLdouble,
) -> Result<(), GLCoreError>;
}Expand description
Functions from OpenGL version 4.1