Version40

Struct Version40 

Source
pub struct Version40 {
Show 47 fields pub geterror: extern "system" fn() -> GLenum, pub minsampleshading: extern "system" fn(GLfloat), pub blendequationi: extern "system" fn(GLuint, GLenum), pub blendequationseparatei: extern "system" fn(GLuint, GLenum, GLenum), pub blendfunci: extern "system" fn(GLuint, GLenum, GLenum), pub blendfuncseparatei: extern "system" fn(GLuint, GLenum, GLenum, GLenum, GLenum), pub drawarraysindirect: extern "system" fn(GLenum, *const c_void), pub drawelementsindirect: extern "system" fn(GLenum, GLenum, *const c_void), pub uniform1d: extern "system" fn(GLint, GLdouble), pub uniform2d: extern "system" fn(GLint, GLdouble, GLdouble), pub uniform3d: extern "system" fn(GLint, GLdouble, GLdouble, GLdouble), pub uniform4d: extern "system" fn(GLint, GLdouble, GLdouble, GLdouble, GLdouble), pub uniform1dv: extern "system" fn(GLint, GLsizei, *const GLdouble), pub uniform2dv: extern "system" fn(GLint, GLsizei, *const GLdouble), pub uniform3dv: extern "system" fn(GLint, GLsizei, *const GLdouble), pub uniform4dv: extern "system" fn(GLint, GLsizei, *const GLdouble), pub uniformmatrix2dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix3dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix4dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix2x3dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix2x4dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix3x2dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix3x4dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix4x2dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub uniformmatrix4x3dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble), pub getuniformdv: extern "system" fn(GLuint, GLint, *mut GLdouble), pub getsubroutineuniformlocation: extern "system" fn(GLuint, GLenum, *const GLchar) -> GLint, pub getsubroutineindex: extern "system" fn(GLuint, GLenum, *const GLchar) -> GLuint, pub getactivesubroutineuniformiv: extern "system" fn(GLuint, GLenum, GLuint, GLenum, *mut GLint), pub getactivesubroutineuniformname: extern "system" fn(GLuint, GLenum, GLuint, GLsizei, *mut GLsizei, *mut GLchar), pub getactivesubroutinename: extern "system" fn(GLuint, GLenum, GLuint, GLsizei, *mut GLsizei, *mut GLchar), pub uniformsubroutinesuiv: extern "system" fn(GLenum, GLsizei, *const GLuint), pub getuniformsubroutineuiv: extern "system" fn(GLenum, GLint, *mut GLuint), pub getprogramstageiv: extern "system" fn(GLuint, GLenum, GLenum, *mut GLint), pub patchparameteri: extern "system" fn(GLenum, GLint), pub patchparameterfv: extern "system" fn(GLenum, *const GLfloat), pub bindtransformfeedback: extern "system" fn(GLenum, GLuint), pub deletetransformfeedbacks: extern "system" fn(GLsizei, *const GLuint), pub gentransformfeedbacks: extern "system" fn(GLsizei, *mut GLuint), pub istransformfeedback: extern "system" fn(GLuint) -> GLboolean, pub pausetransformfeedback: extern "system" fn(), pub resumetransformfeedback: extern "system" fn(), pub drawtransformfeedback: extern "system" fn(GLenum, GLuint), pub drawtransformfeedbackstream: extern "system" fn(GLenum, GLuint, GLuint), pub beginqueryindexed: extern "system" fn(GLenum, GLuint, GLuint), pub endqueryindexed: extern "system" fn(GLenum, GLuint), pub getqueryindexediv: extern "system" fn(GLenum, GLuint, GLenum, *mut GLint), /* private fields */
}
Expand description

Functions from OpenGL version 4.0

Fields§

§geterror: extern "system" fn() -> GLenum

The function pointer to glGetError()

§minsampleshading: extern "system" fn(GLfloat)

The function pointer to glMinSampleShading()

§blendequationi: extern "system" fn(GLuint, GLenum)

The function pointer to glBlendEquationi()

§blendequationseparatei: extern "system" fn(GLuint, GLenum, GLenum)

The function pointer to glBlendEquationSeparatei()

§blendfunci: extern "system" fn(GLuint, GLenum, GLenum)

The function pointer to glBlendFunci()

§blendfuncseparatei: extern "system" fn(GLuint, GLenum, GLenum, GLenum, GLenum)

The function pointer to glBlendFuncSeparatei()

§drawarraysindirect: extern "system" fn(GLenum, *const c_void)

The function pointer to glDrawArraysIndirect()

§drawelementsindirect: extern "system" fn(GLenum, GLenum, *const c_void)

The function pointer to glDrawElementsIndirect()

§uniform1d: extern "system" fn(GLint, GLdouble)

The function pointer to glUniform1d()

§uniform2d: extern "system" fn(GLint, GLdouble, GLdouble)

The function pointer to glUniform2d()

§uniform3d: extern "system" fn(GLint, GLdouble, GLdouble, GLdouble)

The function pointer to glUniform3d()

§uniform4d: extern "system" fn(GLint, GLdouble, GLdouble, GLdouble, GLdouble)

The function pointer to glUniform4d()

§uniform1dv: extern "system" fn(GLint, GLsizei, *const GLdouble)

The function pointer to glUniform1dv()

§uniform2dv: extern "system" fn(GLint, GLsizei, *const GLdouble)

The function pointer to glUniform2dv()

§uniform3dv: extern "system" fn(GLint, GLsizei, *const GLdouble)

The function pointer to glUniform3dv()

§uniform4dv: extern "system" fn(GLint, GLsizei, *const GLdouble)

The function pointer to glUniform4dv()

§uniformmatrix2dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix2dv()

§uniformmatrix3dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix3dv()

§uniformmatrix4dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix4dv()

§uniformmatrix2x3dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix2x3dv()

§uniformmatrix2x4dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix2x4dv()

§uniformmatrix3x2dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix3x2dv()

§uniformmatrix3x4dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix3x4dv()

§uniformmatrix4x2dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix4x2dv()

§uniformmatrix4x3dv: extern "system" fn(GLint, GLsizei, GLboolean, *const GLdouble)

The function pointer to glUniformMatrix4x3dv()

§getuniformdv: extern "system" fn(GLuint, GLint, *mut GLdouble)

The function pointer to glGetUniformdv()

§getsubroutineuniformlocation: extern "system" fn(GLuint, GLenum, *const GLchar) -> GLint

The function pointer to glGetSubroutineUniformLocation()

§getsubroutineindex: extern "system" fn(GLuint, GLenum, *const GLchar) -> GLuint

The function pointer to glGetSubroutineIndex()

§getactivesubroutineuniformiv: extern "system" fn(GLuint, GLenum, GLuint, GLenum, *mut GLint)

The function pointer to glGetActiveSubroutineUniformiv()

§getactivesubroutineuniformname: extern "system" fn(GLuint, GLenum, GLuint, GLsizei, *mut GLsizei, *mut GLchar)

The function pointer to glGetActiveSubroutineUniformName()

§getactivesubroutinename: extern "system" fn(GLuint, GLenum, GLuint, GLsizei, *mut GLsizei, *mut GLchar)

The function pointer to glGetActiveSubroutineName()

§uniformsubroutinesuiv: extern "system" fn(GLenum, GLsizei, *const GLuint)

The function pointer to glUniformSubroutinesuiv()

§getuniformsubroutineuiv: extern "system" fn(GLenum, GLint, *mut GLuint)

The function pointer to glGetUniformSubroutineuiv()

§getprogramstageiv: extern "system" fn(GLuint, GLenum, GLenum, *mut GLint)

The function pointer to glGetProgramStageiv()

§patchparameteri: extern "system" fn(GLenum, GLint)

The function pointer to glPatchParameteri()

§patchparameterfv: extern "system" fn(GLenum, *const GLfloat)

The function pointer to glPatchParameterfv()

§bindtransformfeedback: extern "system" fn(GLenum, GLuint)

The function pointer to glBindTransformFeedback()

§deletetransformfeedbacks: extern "system" fn(GLsizei, *const GLuint)

The function pointer to glDeleteTransformFeedbacks()

§gentransformfeedbacks: extern "system" fn(GLsizei, *mut GLuint)

The function pointer to glGenTransformFeedbacks()

§istransformfeedback: extern "system" fn(GLuint) -> GLboolean

The function pointer to glIsTransformFeedback()

§pausetransformfeedback: extern "system" fn()

The function pointer to glPauseTransformFeedback()

§resumetransformfeedback: extern "system" fn()

The function pointer to glResumeTransformFeedback()

§drawtransformfeedback: extern "system" fn(GLenum, GLuint)

The function pointer to glDrawTransformFeedback()

§drawtransformfeedbackstream: extern "system" fn(GLenum, GLuint, GLuint)

The function pointer to glDrawTransformFeedbackStream()

§beginqueryindexed: extern "system" fn(GLenum, GLuint, GLuint)

The function pointer to glBeginQueryIndexed()

§endqueryindexed: extern "system" fn(GLenum, GLuint)

The function pointer to glEndQueryIndexed()

§getqueryindexediv: extern "system" fn(GLenum, GLuint, GLenum, *mut GLint)

The function pointer to glGetQueryIndexediv()

Implementations§

Source§

impl Version40

Source

pub fn new( base: impl GL_1_0, get_proc_address: impl FnMut(&'static str) -> *const c_void, ) -> Self

Source

pub fn get_available(&self) -> bool

Trait Implementations§

Source§

impl Clone for Version40

Source§

fn clone(&self) -> Version40

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Version40

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Version40

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl GL_4_0 for Version40

Source§

fn glGetError(&self) -> GLenum

Source§

fn glMinSampleShading(&self, value: GLfloat) -> Result<(), GLCoreError>

Source§

fn glBlendEquationi(&self, buf: GLuint, mode: GLenum) -> Result<(), GLCoreError>

Source§

fn glBlendEquationSeparatei( &self, buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum, ) -> Result<(), GLCoreError>

Source§

fn glBlendFunci( &self, buf: GLuint, src: GLenum, dst: GLenum, ) -> Result<(), GLCoreError>

Source§

fn glBlendFuncSeparatei( &self, buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum, ) -> Result<(), GLCoreError>

Source§

fn glDrawArraysIndirect( &self, mode: GLenum, indirect: *const c_void, ) -> Result<(), GLCoreError>

Source§

fn glDrawElementsIndirect( &self, mode: GLenum, type_: GLenum, indirect: *const c_void, ) -> Result<(), GLCoreError>

Source§

fn glUniform1d(&self, location: GLint, x: GLdouble) -> Result<(), GLCoreError>

Source§

fn glUniform2d( &self, location: GLint, x: GLdouble, y: GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniform3d( &self, location: GLint, x: GLdouble, y: GLdouble, z: GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniform4d( &self, location: GLint, x: GLdouble, y: GLdouble, z: GLdouble, w: GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniform1dv( &self, location: GLint, count: GLsizei, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniform2dv( &self, location: GLint, count: GLsizei, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniform3dv( &self, location: GLint, count: GLsizei, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniform4dv( &self, location: GLint, count: GLsizei, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix2dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix3dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix4dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix2x3dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix2x4dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix3x2dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix3x4dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix4x2dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix4x3dv( &self, location: GLint, count: GLsizei, transpose: GLboolean, value: *const GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glGetUniformdv( &self, program: GLuint, location: GLint, params: *mut GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glGetSubroutineUniformLocation( &self, program: GLuint, shadertype: GLenum, name: *const GLchar, ) -> Result<GLint, GLCoreError>

Source§

fn glGetSubroutineIndex( &self, program: GLuint, shadertype: GLenum, name: *const GLchar, ) -> Result<GLuint, GLCoreError>

Source§

fn glGetActiveSubroutineUniformiv( &self, program: GLuint, shadertype: GLenum, index: GLuint, pname: GLenum, values: *mut GLint, ) -> Result<(), GLCoreError>

Source§

fn glGetActiveSubroutineUniformName( &self, program: GLuint, shadertype: GLenum, index: GLuint, bufSize: GLsizei, length: *mut GLsizei, name: *mut GLchar, ) -> Result<(), GLCoreError>

Source§

fn glGetActiveSubroutineName( &self, program: GLuint, shadertype: GLenum, index: GLuint, bufSize: GLsizei, length: *mut GLsizei, name: *mut GLchar, ) -> Result<(), GLCoreError>

Source§

fn glUniformSubroutinesuiv( &self, shadertype: GLenum, count: GLsizei, indices: *const GLuint, ) -> Result<(), GLCoreError>

Source§

fn glGetUniformSubroutineuiv( &self, shadertype: GLenum, location: GLint, params: *mut GLuint, ) -> Result<(), GLCoreError>

Source§

fn glGetProgramStageiv( &self, program: GLuint, shadertype: GLenum, pname: GLenum, values: *mut GLint, ) -> Result<(), GLCoreError>

Source§

fn glPatchParameteri( &self, pname: GLenum, value: GLint, ) -> Result<(), GLCoreError>

Source§

fn glPatchParameterfv( &self, pname: GLenum, values: *const GLfloat, ) -> Result<(), GLCoreError>

Source§

fn glBindTransformFeedback( &self, target: GLenum, id: GLuint, ) -> Result<(), GLCoreError>

Source§

fn glDeleteTransformFeedbacks( &self, n: GLsizei, ids: *const GLuint, ) -> Result<(), GLCoreError>

Source§

fn glGenTransformFeedbacks( &self, n: GLsizei, ids: *mut GLuint, ) -> Result<(), GLCoreError>

Source§

fn glIsTransformFeedback(&self, id: GLuint) -> Result<GLboolean, GLCoreError>

Source§

fn glPauseTransformFeedback(&self) -> Result<(), GLCoreError>

Source§

fn glResumeTransformFeedback(&self) -> Result<(), GLCoreError>

Source§

fn glDrawTransformFeedback( &self, mode: GLenum, id: GLuint, ) -> Result<(), GLCoreError>

Source§

fn glDrawTransformFeedbackStream( &self, mode: GLenum, id: GLuint, stream: GLuint, ) -> Result<(), GLCoreError>

Source§

fn glBeginQueryIndexed( &self, target: GLenum, index: GLuint, id: GLuint, ) -> Result<(), GLCoreError>

Source§

fn glEndQueryIndexed( &self, target: GLenum, index: GLuint, ) -> Result<(), GLCoreError>

Source§

fn glGetQueryIndexediv( &self, target: GLenum, index: GLuint, pname: GLenum, params: *mut GLint, ) -> Result<(), GLCoreError>

Source§

impl Hash for Version40

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Version40

Source§

fn eq(&self, other: &Version40) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Version40

Source§

impl Eq for Version40

Source§

impl StructuralPartialEq for Version40

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.