Version10

Struct Version10 

Source
pub struct Version10 {
Show 48 fields pub cullface: extern "system" fn(GLenum), pub frontface: extern "system" fn(GLenum), pub hint: extern "system" fn(GLenum, GLenum), pub linewidth: extern "system" fn(GLfloat), pub pointsize: extern "system" fn(GLfloat), pub polygonmode: extern "system" fn(GLenum, GLenum), pub scissor: extern "system" fn(GLint, GLint, GLsizei, GLsizei), pub texparameterf: extern "system" fn(GLenum, GLenum, GLfloat), pub texparameterfv: extern "system" fn(GLenum, GLenum, *const GLfloat), pub texparameteri: extern "system" fn(GLenum, GLenum, GLint), pub texparameteriv: extern "system" fn(GLenum, GLenum, *const GLint), pub teximage1d: extern "system" fn(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, *const c_void), pub teximage2d: extern "system" fn(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, *const c_void), pub drawbuffer: extern "system" fn(GLenum), pub clear: extern "system" fn(GLbitfield), pub clearcolor: extern "system" fn(GLfloat, GLfloat, GLfloat, GLfloat), pub clearstencil: extern "system" fn(GLint), pub cleardepth: extern "system" fn(GLdouble), pub stencilmask: extern "system" fn(GLuint), pub colormask: extern "system" fn(GLboolean, GLboolean, GLboolean, GLboolean), pub depthmask: extern "system" fn(GLboolean), pub disable: extern "system" fn(GLenum), pub enable: extern "system" fn(GLenum), pub finish: extern "system" fn(), pub flush: extern "system" fn(), pub blendfunc: extern "system" fn(GLenum, GLenum), pub logicop: extern "system" fn(GLenum), pub stencilfunc: extern "system" fn(GLenum, GLint, GLuint), pub stencilop: extern "system" fn(GLenum, GLenum, GLenum), pub depthfunc: extern "system" fn(GLenum), pub pixelstoref: extern "system" fn(GLenum, GLfloat), pub pixelstorei: extern "system" fn(GLenum, GLint), pub readbuffer: extern "system" fn(GLenum), pub readpixels: extern "system" fn(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, *mut c_void), pub getbooleanv: extern "system" fn(GLenum, *mut GLboolean), pub getdoublev: extern "system" fn(GLenum, *mut GLdouble), pub geterror: extern "system" fn() -> GLenum, pub getfloatv: extern "system" fn(GLenum, *mut GLfloat), pub getintegerv: extern "system" fn(GLenum, *mut GLint), pub getstring: extern "system" fn(GLenum) -> *const GLubyte, pub getteximage: extern "system" fn(GLenum, GLint, GLenum, GLenum, *mut c_void), pub gettexparameterfv: extern "system" fn(GLenum, GLenum, *mut GLfloat), pub gettexparameteriv: extern "system" fn(GLenum, GLenum, *mut GLint), pub gettexlevelparameterfv: extern "system" fn(GLenum, GLint, GLenum, *mut GLfloat), pub gettexlevelparameteriv: extern "system" fn(GLenum, GLint, GLenum, *mut GLint), pub isenabled: extern "system" fn(GLenum) -> GLboolean, pub depthrange: extern "system" fn(GLdouble, GLdouble), pub viewport: extern "system" fn(GLint, GLint, GLsizei, GLsizei), /* private fields */
}
Expand description

Functions from OpenGL version 1.0

Fields§

§cullface: extern "system" fn(GLenum)

The function pointer to glCullFace()

§frontface: extern "system" fn(GLenum)

The function pointer to glFrontFace()

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

The function pointer to glHint()

§linewidth: extern "system" fn(GLfloat)

The function pointer to glLineWidth()

§pointsize: extern "system" fn(GLfloat)

The function pointer to glPointSize()

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

The function pointer to glPolygonMode()

§scissor: extern "system" fn(GLint, GLint, GLsizei, GLsizei)

The function pointer to glScissor()

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

The function pointer to glTexParameterf()

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

The function pointer to glTexParameterfv()

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

The function pointer to glTexParameteri()

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

The function pointer to glTexParameteriv()

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

The function pointer to glTexImage1D()

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

The function pointer to glTexImage2D()

§drawbuffer: extern "system" fn(GLenum)

The function pointer to glDrawBuffer()

§clear: extern "system" fn(GLbitfield)

The function pointer to glClear()

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

The function pointer to glClearColor()

§clearstencil: extern "system" fn(GLint)

The function pointer to glClearStencil()

§cleardepth: extern "system" fn(GLdouble)

The function pointer to glClearDepth()

§stencilmask: extern "system" fn(GLuint)

The function pointer to glStencilMask()

§colormask: extern "system" fn(GLboolean, GLboolean, GLboolean, GLboolean)

The function pointer to glColorMask()

§depthmask: extern "system" fn(GLboolean)

The function pointer to glDepthMask()

§disable: extern "system" fn(GLenum)

The function pointer to glDisable()

§enable: extern "system" fn(GLenum)

The function pointer to glEnable()

§finish: extern "system" fn()

The function pointer to glFinish()

§flush: extern "system" fn()

The function pointer to glFlush()

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

The function pointer to glBlendFunc()

§logicop: extern "system" fn(GLenum)

The function pointer to glLogicOp()

§stencilfunc: extern "system" fn(GLenum, GLint, GLuint)

The function pointer to glStencilFunc()

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

The function pointer to glStencilOp()

§depthfunc: extern "system" fn(GLenum)

The function pointer to glDepthFunc()

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

The function pointer to glPixelStoref()

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

The function pointer to glPixelStorei()

§readbuffer: extern "system" fn(GLenum)

The function pointer to glReadBuffer()

§readpixels: extern "system" fn(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, *mut c_void)

The function pointer to glReadPixels()

§getbooleanv: extern "system" fn(GLenum, *mut GLboolean)

The function pointer to glGetBooleanv()

§getdoublev: extern "system" fn(GLenum, *mut GLdouble)

The function pointer to glGetDoublev()

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

The function pointer to glGetError()

§getfloatv: extern "system" fn(GLenum, *mut GLfloat)

The function pointer to glGetFloatv()

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

The function pointer to glGetIntegerv()

§getstring: extern "system" fn(GLenum) -> *const GLubyte

The function pointer to glGetString()

§getteximage: extern "system" fn(GLenum, GLint, GLenum, GLenum, *mut c_void)

The function pointer to glGetTexImage()

§gettexparameterfv: extern "system" fn(GLenum, GLenum, *mut GLfloat)

The function pointer to glGetTexParameterfv()

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

The function pointer to glGetTexParameteriv()

§gettexlevelparameterfv: extern "system" fn(GLenum, GLint, GLenum, *mut GLfloat)

The function pointer to glGetTexLevelParameterfv()

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

The function pointer to glGetTexLevelParameteriv()

§isenabled: extern "system" fn(GLenum) -> GLboolean

The function pointer to glIsEnabled()

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

The function pointer to glDepthRange()

§viewport: extern "system" fn(GLint, GLint, GLsizei, GLsizei)

The function pointer to glViewport()

Implementations§

Source§

impl Version10

Source

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

Source

pub fn get_available(&self) -> bool

Trait Implementations§

Source§

impl Clone for Version10

Source§

fn clone(&self) -> Version10

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 Version10

Source§

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

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

impl Default for Version10

Source§

fn default() -> Self

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

impl GL_1_0 for Version10

Source§

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

Source§

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

Source§

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

Source§

fn glLineWidth(&self, width: GLfloat) -> Result<(), GLCoreError>

Source§

fn glPointSize(&self, size: GLfloat) -> Result<(), GLCoreError>

Source§

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

Source§

fn glScissor( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, ) -> Result<(), GLCoreError>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn glTexImage1D( &self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, border: GLint, format: GLenum, type_: GLenum, pixels: *const c_void, ) -> Result<(), GLCoreError>

Source§

fn glTexImage2D( &self, target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type_: GLenum, pixels: *const c_void, ) -> Result<(), GLCoreError>

Source§

fn glDrawBuffer(&self, buf: GLenum) -> Result<(), GLCoreError>

Source§

fn glClear(&self, mask: GLbitfield) -> Result<(), GLCoreError>

Source§

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

Source§

fn glClearStencil(&self, s: GLint) -> Result<(), GLCoreError>

Source§

fn glClearDepth(&self, depth: GLdouble) -> Result<(), GLCoreError>

Source§

fn glStencilMask(&self, mask: GLuint) -> Result<(), GLCoreError>

Source§

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

Source§

fn glDepthMask(&self, flag: GLboolean) -> Result<(), GLCoreError>

Source§

fn glDisable(&self, cap: GLenum) -> Result<(), GLCoreError>

Source§

fn glEnable(&self, cap: GLenum) -> Result<(), GLCoreError>

Source§

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

Source§

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

Source§

fn glBlendFunc( &self, sfactor: GLenum, dfactor: GLenum, ) -> Result<(), GLCoreError>

Source§

fn glLogicOp(&self, opcode: GLenum) -> Result<(), GLCoreError>

Source§

fn glStencilFunc( &self, func: GLenum, ref_: GLint, mask: GLuint, ) -> Result<(), GLCoreError>

Source§

fn glStencilOp( &self, fail: GLenum, zfail: GLenum, zpass: GLenum, ) -> Result<(), GLCoreError>

Source§

fn glDepthFunc(&self, func: GLenum) -> Result<(), GLCoreError>

Source§

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

Source§

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

Source§

fn glReadBuffer(&self, src: GLenum) -> Result<(), GLCoreError>

Source§

fn glReadPixels( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type_: GLenum, pixels: *mut c_void, ) -> Result<(), GLCoreError>

Source§

fn glGetBooleanv( &self, pname: GLenum, data: *mut GLboolean, ) -> Result<(), GLCoreError>

Source§

fn glGetDoublev( &self, pname: GLenum, data: *mut GLdouble, ) -> Result<(), GLCoreError>

Source§

fn glGetError(&self) -> GLenum

Source§

fn glGetFloatv( &self, pname: GLenum, data: *mut GLfloat, ) -> Result<(), GLCoreError>

Source§

fn glGetIntegerv( &self, pname: GLenum, data: *mut GLint, ) -> Result<(), GLCoreError>

Source§

fn glGetString(&self, name: GLenum) -> Result<&'static str, GLCoreError>

Source§

fn glGetTexImage( &self, target: GLenum, level: GLint, format: GLenum, type_: GLenum, pixels: *mut c_void, ) -> Result<(), GLCoreError>

Source§

fn glGetTexParameterfv( &self, target: GLenum, pname: GLenum, params: *mut GLfloat, ) -> Result<(), GLCoreError>

Source§

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

Source§

fn glGetTexLevelParameterfv( &self, target: GLenum, level: GLint, pname: GLenum, params: *mut GLfloat, ) -> Result<(), GLCoreError>

Source§

fn glGetTexLevelParameteriv( &self, target: GLenum, level: GLint, pname: GLenum, params: *mut GLint, ) -> Result<(), GLCoreError>

Source§

fn glIsEnabled(&self, cap: GLenum) -> Result<GLboolean, GLCoreError>

Source§

fn glDepthRange(&self, n: GLdouble, f: GLdouble) -> Result<(), GLCoreError>

Source§

fn glViewport( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, ) -> Result<(), GLCoreError>

Source§

fn get_version(&self) -> (&'static str, u32, u32, u32)

Get the OpenGL backend version (string_version, major, minor, release)
Source§

fn get_vendor(&self) -> &'static str

Get the OpenGL vendor string
Source§

fn get_renderer(&self) -> &'static str

Get the OpenGL renderer string
Source§

fn get_versionstr(&self) -> &'static str

Get the OpenGL version string
Source§

impl Hash for Version10

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 Version10

Source§

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

Source§

impl Eq for Version10

Source§

impl StructuralPartialEq for Version10

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.