Version14

Struct Version14 

Source
pub struct Version14 {
Show 48 fields pub geterror: extern "system" fn() -> GLenum, pub blendfuncseparate: extern "system" fn(GLenum, GLenum, GLenum, GLenum), pub multidrawarrays: extern "system" fn(GLenum, *const GLint, *const GLsizei, GLsizei), pub multidrawelements: extern "system" fn(GLenum, *const GLsizei, GLenum, *const *const c_void, GLsizei), pub pointparameterf: extern "system" fn(GLenum, GLfloat), pub pointparameterfv: extern "system" fn(GLenum, *const GLfloat), pub pointparameteri: extern "system" fn(GLenum, GLint), pub pointparameteriv: extern "system" fn(GLenum, *const GLint), pub fogcoordf: extern "system" fn(GLfloat), pub fogcoordfv: extern "system" fn(*const GLfloat), pub fogcoordd: extern "system" fn(GLdouble), pub fogcoorddv: extern "system" fn(*const GLdouble), pub fogcoordpointer: extern "system" fn(GLenum, GLsizei, *const c_void), pub secondarycolor3b: extern "system" fn(GLbyte, GLbyte, GLbyte), pub secondarycolor3bv: extern "system" fn(*const GLbyte), pub secondarycolor3d: extern "system" fn(GLdouble, GLdouble, GLdouble), pub secondarycolor3dv: extern "system" fn(*const GLdouble), pub secondarycolor3f: extern "system" fn(GLfloat, GLfloat, GLfloat), pub secondarycolor3fv: extern "system" fn(*const GLfloat), pub secondarycolor3i: extern "system" fn(GLint, GLint, GLint), pub secondarycolor3iv: extern "system" fn(*const GLint), pub secondarycolor3s: extern "system" fn(GLshort, GLshort, GLshort), pub secondarycolor3sv: extern "system" fn(*const GLshort), pub secondarycolor3ub: extern "system" fn(GLubyte, GLubyte, GLubyte), pub secondarycolor3ubv: extern "system" fn(*const GLubyte), pub secondarycolor3ui: extern "system" fn(GLuint, GLuint, GLuint), pub secondarycolor3uiv: extern "system" fn(*const GLuint), pub secondarycolor3us: extern "system" fn(GLushort, GLushort, GLushort), pub secondarycolor3usv: extern "system" fn(*const GLushort), pub secondarycolorpointer: extern "system" fn(GLint, GLenum, GLsizei, *const c_void), pub windowpos2d: extern "system" fn(GLdouble, GLdouble), pub windowpos2dv: extern "system" fn(*const GLdouble), pub windowpos2f: extern "system" fn(GLfloat, GLfloat), pub windowpos2fv: extern "system" fn(*const GLfloat), pub windowpos2i: extern "system" fn(GLint, GLint), pub windowpos2iv: extern "system" fn(*const GLint), pub windowpos2s: extern "system" fn(GLshort, GLshort), pub windowpos2sv: extern "system" fn(*const GLshort), pub windowpos3d: extern "system" fn(GLdouble, GLdouble, GLdouble), pub windowpos3dv: extern "system" fn(*const GLdouble), pub windowpos3f: extern "system" fn(GLfloat, GLfloat, GLfloat), pub windowpos3fv: extern "system" fn(*const GLfloat), pub windowpos3i: extern "system" fn(GLint, GLint, GLint), pub windowpos3iv: extern "system" fn(*const GLint), pub windowpos3s: extern "system" fn(GLshort, GLshort, GLshort), pub windowpos3sv: extern "system" fn(*const GLshort), pub blendcolor: extern "system" fn(GLfloat, GLfloat, GLfloat, GLfloat), pub blendequation: extern "system" fn(GLenum), /* private fields */
}
Expand description

Functions from OpenGL version 1.4

Fields§

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

The function pointer to glGetError()

§blendfuncseparate: extern "system" fn(GLenum, GLenum, GLenum, GLenum)

The function pointer to glBlendFuncSeparate()

§multidrawarrays: extern "system" fn(GLenum, *const GLint, *const GLsizei, GLsizei)

The function pointer to glMultiDrawArrays()

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

The function pointer to glMultiDrawElements()

§pointparameterf: extern "system" fn(GLenum, GLfloat)

The function pointer to glPointParameterf()

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

The function pointer to glPointParameterfv()

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

The function pointer to glPointParameteri()

§pointparameteriv: extern "system" fn(GLenum, *const GLint)

The function pointer to glPointParameteriv()

§fogcoordf: extern "system" fn(GLfloat)

The function pointer to glFogCoordf()

§fogcoordfv: extern "system" fn(*const GLfloat)

The function pointer to glFogCoordfv()

§fogcoordd: extern "system" fn(GLdouble)

The function pointer to glFogCoordd()

§fogcoorddv: extern "system" fn(*const GLdouble)

The function pointer to glFogCoorddv()

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

The function pointer to glFogCoordPointer()

§secondarycolor3b: extern "system" fn(GLbyte, GLbyte, GLbyte)

The function pointer to glSecondaryColor3b()

§secondarycolor3bv: extern "system" fn(*const GLbyte)

The function pointer to glSecondaryColor3bv()

§secondarycolor3d: extern "system" fn(GLdouble, GLdouble, GLdouble)

The function pointer to glSecondaryColor3d()

§secondarycolor3dv: extern "system" fn(*const GLdouble)

The function pointer to glSecondaryColor3dv()

§secondarycolor3f: extern "system" fn(GLfloat, GLfloat, GLfloat)

The function pointer to glSecondaryColor3f()

§secondarycolor3fv: extern "system" fn(*const GLfloat)

The function pointer to glSecondaryColor3fv()

§secondarycolor3i: extern "system" fn(GLint, GLint, GLint)

The function pointer to glSecondaryColor3i()

§secondarycolor3iv: extern "system" fn(*const GLint)

The function pointer to glSecondaryColor3iv()

§secondarycolor3s: extern "system" fn(GLshort, GLshort, GLshort)

The function pointer to glSecondaryColor3s()

§secondarycolor3sv: extern "system" fn(*const GLshort)

The function pointer to glSecondaryColor3sv()

§secondarycolor3ub: extern "system" fn(GLubyte, GLubyte, GLubyte)

The function pointer to glSecondaryColor3ub()

§secondarycolor3ubv: extern "system" fn(*const GLubyte)

The function pointer to glSecondaryColor3ubv()

§secondarycolor3ui: extern "system" fn(GLuint, GLuint, GLuint)

The function pointer to glSecondaryColor3ui()

§secondarycolor3uiv: extern "system" fn(*const GLuint)

The function pointer to glSecondaryColor3uiv()

§secondarycolor3us: extern "system" fn(GLushort, GLushort, GLushort)

The function pointer to glSecondaryColor3us()

§secondarycolor3usv: extern "system" fn(*const GLushort)

The function pointer to glSecondaryColor3usv()

§secondarycolorpointer: extern "system" fn(GLint, GLenum, GLsizei, *const c_void)

The function pointer to glSecondaryColorPointer()

§windowpos2d: extern "system" fn(GLdouble, GLdouble)

The function pointer to glWindowPos2d()

§windowpos2dv: extern "system" fn(*const GLdouble)

The function pointer to glWindowPos2dv()

§windowpos2f: extern "system" fn(GLfloat, GLfloat)

The function pointer to glWindowPos2f()

§windowpos2fv: extern "system" fn(*const GLfloat)

The function pointer to glWindowPos2fv()

§windowpos2i: extern "system" fn(GLint, GLint)

The function pointer to glWindowPos2i()

§windowpos2iv: extern "system" fn(*const GLint)

The function pointer to glWindowPos2iv()

§windowpos2s: extern "system" fn(GLshort, GLshort)

The function pointer to glWindowPos2s()

§windowpos2sv: extern "system" fn(*const GLshort)

The function pointer to glWindowPos2sv()

§windowpos3d: extern "system" fn(GLdouble, GLdouble, GLdouble)

The function pointer to glWindowPos3d()

§windowpos3dv: extern "system" fn(*const GLdouble)

The function pointer to glWindowPos3dv()

§windowpos3f: extern "system" fn(GLfloat, GLfloat, GLfloat)

The function pointer to glWindowPos3f()

§windowpos3fv: extern "system" fn(*const GLfloat)

The function pointer to glWindowPos3fv()

§windowpos3i: extern "system" fn(GLint, GLint, GLint)

The function pointer to glWindowPos3i()

§windowpos3iv: extern "system" fn(*const GLint)

The function pointer to glWindowPos3iv()

§windowpos3s: extern "system" fn(GLshort, GLshort, GLshort)

The function pointer to glWindowPos3s()

§windowpos3sv: extern "system" fn(*const GLshort)

The function pointer to glWindowPos3sv()

§blendcolor: extern "system" fn(GLfloat, GLfloat, GLfloat, GLfloat)

The function pointer to glBlendColor()

§blendequation: extern "system" fn(GLenum)

The function pointer to glBlendEquation()

Implementations§

Source§

impl Version14

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 Version14

Source§

fn clone(&self) -> Version14

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 Version14

Source§

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

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

impl Default for Version14

Source§

fn default() -> Self

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

impl GL_1_4 for Version14

Source§

fn glGetError(&self) -> GLenum

Source§

fn glBlendFuncSeparate( &self, sfactorRGB: GLenum, dfactorRGB: GLenum, sfactorAlpha: GLenum, dfactorAlpha: GLenum, ) -> Result<(), GLCoreError>

Source§

fn glMultiDrawArrays( &self, mode: GLenum, first: *const GLint, count: *const GLsizei, drawcount: GLsizei, ) -> Result<(), GLCoreError>

Source§

fn glMultiDrawElements( &self, mode: GLenum, count: *const GLsizei, type_: GLenum, indices: *const *const c_void, drawcount: GLsizei, ) -> Result<(), GLCoreError>

Source§

fn glPointParameterf( &self, pname: GLenum, param: GLfloat, ) -> Result<(), GLCoreError>

Source§

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

Source§

fn glPointParameteri( &self, pname: GLenum, param: GLint, ) -> Result<(), GLCoreError>

Source§

fn glPointParameteriv( &self, pname: GLenum, params: *const GLint, ) -> Result<(), GLCoreError>

Source§

fn glFogCoordf(&self, coord: GLfloat) -> Result<(), GLCoreError>

Source§

fn glFogCoordfv(&self, coord: *const GLfloat) -> Result<(), GLCoreError>

Source§

fn glFogCoordd(&self, coord: GLdouble) -> Result<(), GLCoreError>

Source§

fn glFogCoorddv(&self, coord: *const GLdouble) -> Result<(), GLCoreError>

Source§

fn glFogCoordPointer( &self, type_: GLenum, stride: GLsizei, pointer: *const c_void, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3b( &self, red: GLbyte, green: GLbyte, blue: GLbyte, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3bv(&self, v: *const GLbyte) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3d( &self, red: GLdouble, green: GLdouble, blue: GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3dv(&self, v: *const GLdouble) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3f( &self, red: GLfloat, green: GLfloat, blue: GLfloat, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3fv(&self, v: *const GLfloat) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3i( &self, red: GLint, green: GLint, blue: GLint, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3iv(&self, v: *const GLint) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3s( &self, red: GLshort, green: GLshort, blue: GLshort, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3sv(&self, v: *const GLshort) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3ub( &self, red: GLubyte, green: GLubyte, blue: GLubyte, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3ubv(&self, v: *const GLubyte) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3ui( &self, red: GLuint, green: GLuint, blue: GLuint, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3uiv(&self, v: *const GLuint) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3us( &self, red: GLushort, green: GLushort, blue: GLushort, ) -> Result<(), GLCoreError>

Source§

fn glSecondaryColor3usv(&self, v: *const GLushort) -> Result<(), GLCoreError>

Source§

fn glSecondaryColorPointer( &self, size: GLint, type_: GLenum, stride: GLsizei, pointer: *const c_void, ) -> Result<(), GLCoreError>

Source§

fn glWindowPos2d(&self, x: GLdouble, y: GLdouble) -> Result<(), GLCoreError>

Source§

fn glWindowPos2dv(&self, v: *const GLdouble) -> Result<(), GLCoreError>

Source§

fn glWindowPos2f(&self, x: GLfloat, y: GLfloat) -> Result<(), GLCoreError>

Source§

fn glWindowPos2fv(&self, v: *const GLfloat) -> Result<(), GLCoreError>

Source§

fn glWindowPos2i(&self, x: GLint, y: GLint) -> Result<(), GLCoreError>

Source§

fn glWindowPos2iv(&self, v: *const GLint) -> Result<(), GLCoreError>

Source§

fn glWindowPos2s(&self, x: GLshort, y: GLshort) -> Result<(), GLCoreError>

Source§

fn glWindowPos2sv(&self, v: *const GLshort) -> Result<(), GLCoreError>

Source§

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

Source§

fn glWindowPos3dv(&self, v: *const GLdouble) -> Result<(), GLCoreError>

Source§

fn glWindowPos3f( &self, x: GLfloat, y: GLfloat, z: GLfloat, ) -> Result<(), GLCoreError>

Source§

fn glWindowPos3fv(&self, v: *const GLfloat) -> Result<(), GLCoreError>

Source§

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

Source§

fn glWindowPos3iv(&self, v: *const GLint) -> Result<(), GLCoreError>

Source§

fn glWindowPos3s( &self, x: GLshort, y: GLshort, z: GLshort, ) -> Result<(), GLCoreError>

Source§

fn glWindowPos3sv(&self, v: *const GLshort) -> Result<(), GLCoreError>

Source§

fn glBlendColor( &self, red: GLfloat, green: GLfloat, blue: GLfloat, alpha: GLfloat, ) -> Result<(), GLCoreError>

Source§

fn glBlendEquation(&self, mode: GLenum) -> Result<(), GLCoreError>

Source§

impl Hash for Version14

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 Version14

Source§

fn eq(&self, other: &Version14) -> 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 Version14

Source§

impl Eq for Version14

Source§

impl StructuralPartialEq for Version14

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.