pub trait GL_4_0 {
Show 47 methods
// Required methods
fn glGetError(&self) -> GLenum;
fn glMinSampleShading(&self, value: GLfloat) -> Result<(), GLCoreError>;
fn glBlendEquationi(
&self,
buf: GLuint,
mode: GLenum,
) -> Result<(), GLCoreError>;
fn glBlendEquationSeparatei(
&self,
buf: GLuint,
modeRGB: GLenum,
modeAlpha: GLenum,
) -> Result<(), GLCoreError>;
fn glBlendFunci(
&self,
buf: GLuint,
src: GLenum,
dst: GLenum,
) -> Result<(), GLCoreError>;
fn glBlendFuncSeparatei(
&self,
buf: GLuint,
srcRGB: GLenum,
dstRGB: GLenum,
srcAlpha: GLenum,
dstAlpha: GLenum,
) -> Result<(), GLCoreError>;
fn glDrawArraysIndirect(
&self,
mode: GLenum,
indirect: *const c_void,
) -> Result<(), GLCoreError>;
fn glDrawElementsIndirect(
&self,
mode: GLenum,
type_: GLenum,
indirect: *const c_void,
) -> Result<(), GLCoreError>;
fn glUniform1d(
&self,
location: GLint,
x: GLdouble,
) -> Result<(), GLCoreError>;
fn glUniform2d(
&self,
location: GLint,
x: GLdouble,
y: GLdouble,
) -> Result<(), GLCoreError>;
fn glUniform3d(
&self,
location: GLint,
x: GLdouble,
y: GLdouble,
z: GLdouble,
) -> Result<(), GLCoreError>;
fn glUniform4d(
&self,
location: GLint,
x: GLdouble,
y: GLdouble,
z: GLdouble,
w: GLdouble,
) -> Result<(), GLCoreError>;
fn glUniform1dv(
&self,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniform2dv(
&self,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniform3dv(
&self,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniform4dv(
&self,
location: GLint,
count: GLsizei,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix2dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix3dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix4dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix2x3dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix2x4dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix3x2dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix3x4dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix4x2dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glUniformMatrix4x3dv(
&self,
location: GLint,
count: GLsizei,
transpose: GLboolean,
value: *const GLdouble,
) -> Result<(), GLCoreError>;
fn glGetUniformdv(
&self,
program: GLuint,
location: GLint,
params: *mut GLdouble,
) -> Result<(), GLCoreError>;
fn glGetSubroutineUniformLocation(
&self,
program: GLuint,
shadertype: GLenum,
name: *const GLchar,
) -> Result<GLint, GLCoreError>;
fn glGetSubroutineIndex(
&self,
program: GLuint,
shadertype: GLenum,
name: *const GLchar,
) -> Result<GLuint, GLCoreError>;
fn glGetActiveSubroutineUniformiv(
&self,
program: GLuint,
shadertype: GLenum,
index: GLuint,
pname: GLenum,
values: *mut GLint,
) -> Result<(), GLCoreError>;
fn glGetActiveSubroutineUniformName(
&self,
program: GLuint,
shadertype: GLenum,
index: GLuint,
bufSize: GLsizei,
length: *mut GLsizei,
name: *mut GLchar,
) -> Result<(), GLCoreError>;
fn glGetActiveSubroutineName(
&self,
program: GLuint,
shadertype: GLenum,
index: GLuint,
bufSize: GLsizei,
length: *mut GLsizei,
name: *mut GLchar,
) -> Result<(), GLCoreError>;
fn glUniformSubroutinesuiv(
&self,
shadertype: GLenum,
count: GLsizei,
indices: *const GLuint,
) -> Result<(), GLCoreError>;
fn glGetUniformSubroutineuiv(
&self,
shadertype: GLenum,
location: GLint,
params: *mut GLuint,
) -> Result<(), GLCoreError>;
fn glGetProgramStageiv(
&self,
program: GLuint,
shadertype: GLenum,
pname: GLenum,
values: *mut GLint,
) -> Result<(), GLCoreError>;
fn glPatchParameteri(
&self,
pname: GLenum,
value: GLint,
) -> Result<(), GLCoreError>;
fn glPatchParameterfv(
&self,
pname: GLenum,
values: *const GLfloat,
) -> Result<(), GLCoreError>;
fn glBindTransformFeedback(
&self,
target: GLenum,
id: GLuint,
) -> Result<(), GLCoreError>;
fn glDeleteTransformFeedbacks(
&self,
n: GLsizei,
ids: *const GLuint,
) -> Result<(), GLCoreError>;
fn glGenTransformFeedbacks(
&self,
n: GLsizei,
ids: *mut GLuint,
) -> Result<(), GLCoreError>;
fn glIsTransformFeedback(
&self,
id: GLuint,
) -> Result<GLboolean, GLCoreError>;
fn glPauseTransformFeedback(&self) -> Result<(), GLCoreError>;
fn glResumeTransformFeedback(&self) -> Result<(), GLCoreError>;
fn glDrawTransformFeedback(
&self,
mode: GLenum,
id: GLuint,
) -> Result<(), GLCoreError>;
fn glDrawTransformFeedbackStream(
&self,
mode: GLenum,
id: GLuint,
stream: GLuint,
) -> Result<(), GLCoreError>;
fn glBeginQueryIndexed(
&self,
target: GLenum,
index: GLuint,
id: GLuint,
) -> Result<(), GLCoreError>;
fn glEndQueryIndexed(
&self,
target: GLenum,
index: GLuint,
) -> Result<(), GLCoreError>;
fn glGetQueryIndexediv(
&self,
target: GLenum,
index: GLuint,
pname: GLenum,
params: *mut GLint,
) -> Result<(), GLCoreError>;
}
Expand description
Functions from OpenGL version 4.0