pub struct Version32 {Show 20 fields
pub geterror: extern "system" fn() -> u32,
pub drawelementsbasevertex: extern "system" fn(u32, i32, u32, *const c_void, i32),
pub drawrangeelementsbasevertex: extern "system" fn(u32, u32, u32, i32, u32, *const c_void, i32),
pub drawelementsinstancedbasevertex: extern "system" fn(u32, i32, u32, *const c_void, i32, i32),
pub multidrawelementsbasevertex: extern "system" fn(u32, *const i32, u32, *const *const c_void, i32, *const i32),
pub provokingvertex: extern "system" fn(u32),
pub fencesync: extern "system" fn(u32, u32) -> *mut c_void,
pub issync: extern "system" fn(*mut c_void) -> u8,
pub deletesync: extern "system" fn(*mut c_void),
pub clientwaitsync: extern "system" fn(*mut c_void, u32, u64) -> u32,
pub waitsync: extern "system" fn(*mut c_void, u32, u64),
pub getinteger64v: extern "system" fn(u32, *mut i64),
pub getsynciv: extern "system" fn(*mut c_void, u32, i32, *mut i32, *mut i32),
pub getinteger64i_v: extern "system" fn(u32, u32, *mut i64),
pub getbufferparameteri64v: extern "system" fn(u32, u32, *mut i64),
pub framebuffertexture: extern "system" fn(u32, u32, u32, i32),
pub teximage2dmultisample: extern "system" fn(u32, i32, u32, i32, i32, u8),
pub teximage3dmultisample: extern "system" fn(u32, i32, u32, i32, i32, i32, u8),
pub getmultisamplefv: extern "system" fn(u32, u32, *mut f32),
pub samplemaski: extern "system" fn(u32, u32),
/* private fields */
}
Expand description
Functions from OpenGL version 3.2
Fields§
§geterror: extern "system" fn() -> u32
The function pointer to glGetError()
drawelementsbasevertex: extern "system" fn(u32, i32, u32, *const c_void, i32)
The function pointer to glDrawElementsBaseVertex()
drawrangeelementsbasevertex: extern "system" fn(u32, u32, u32, i32, u32, *const c_void, i32)
The function pointer to glDrawRangeElementsBaseVertex()
drawelementsinstancedbasevertex: extern "system" fn(u32, i32, u32, *const c_void, i32, i32)
The function pointer to glDrawElementsInstancedBaseVertex()
multidrawelementsbasevertex: extern "system" fn(u32, *const i32, u32, *const *const c_void, i32, *const i32)
The function pointer to glMultiDrawElementsBaseVertex()
provokingvertex: extern "system" fn(u32)
The function pointer to glProvokingVertex()
fencesync: extern "system" fn(u32, u32) -> *mut c_void
The function pointer to glFenceSync()
issync: extern "system" fn(*mut c_void) -> u8
The function pointer to glIsSync()
deletesync: extern "system" fn(*mut c_void)
The function pointer to glDeleteSync()
clientwaitsync: extern "system" fn(*mut c_void, u32, u64) -> u32
The function pointer to glClientWaitSync()
waitsync: extern "system" fn(*mut c_void, u32, u64)
The function pointer to glWaitSync()
getinteger64v: extern "system" fn(u32, *mut i64)
The function pointer to glGetInteger64v()
getsynciv: extern "system" fn(*mut c_void, u32, i32, *mut i32, *mut i32)
The function pointer to glGetSynciv()
getinteger64i_v: extern "system" fn(u32, u32, *mut i64)
The function pointer to glGetInteger64i_v()
getbufferparameteri64v: extern "system" fn(u32, u32, *mut i64)
The function pointer to glGetBufferParameteri64v()
framebuffertexture: extern "system" fn(u32, u32, u32, i32)
The function pointer to glFramebufferTexture()
teximage2dmultisample: extern "system" fn(u32, i32, u32, i32, i32, u8)
The function pointer to glTexImage2DMultisample()
teximage3dmultisample: extern "system" fn(u32, i32, u32, i32, i32, i32, u8)
The function pointer to glTexImage3DMultisample()
getmultisamplefv: extern "system" fn(u32, u32, *mut f32)
The function pointer to glGetMultisamplefv()
samplemaski: extern "system" fn(u32, u32)
The function pointer to glSampleMaski()
Implementations§
Trait Implementations§
Source§impl GL_3_2 for Version32
impl GL_3_2 for Version32
Source§fn glGetError(&self) -> u32
fn glGetError(&self) -> u32
Source§fn glDrawElementsBaseVertex(
&self,
mode: u32,
count: i32,
type_: u32,
indices: *const c_void,
basevertex: i32,
) -> Result<(), GLCoreError>
fn glDrawElementsBaseVertex( &self, mode: u32, count: i32, type_: u32, indices: *const c_void, basevertex: i32, ) -> Result<(), GLCoreError>
Source§fn glDrawRangeElementsBaseVertex(
&self,
mode: u32,
start: u32,
end: u32,
count: i32,
type_: u32,
indices: *const c_void,
basevertex: i32,
) -> Result<(), GLCoreError>
fn glDrawRangeElementsBaseVertex( &self, mode: u32, start: u32, end: u32, count: i32, type_: u32, indices: *const c_void, basevertex: i32, ) -> Result<(), GLCoreError>
Source§fn glDrawElementsInstancedBaseVertex(
&self,
mode: u32,
count: i32,
type_: u32,
indices: *const c_void,
instancecount: i32,
basevertex: i32,
) -> Result<(), GLCoreError>
fn glDrawElementsInstancedBaseVertex( &self, mode: u32, count: i32, type_: u32, indices: *const c_void, instancecount: i32, basevertex: i32, ) -> Result<(), GLCoreError>
Source§fn glMultiDrawElementsBaseVertex(
&self,
mode: u32,
count: *const i32,
type_: u32,
indices: *const *const c_void,
drawcount: i32,
basevertex: *const i32,
) -> Result<(), GLCoreError>
fn glMultiDrawElementsBaseVertex( &self, mode: u32, count: *const i32, type_: u32, indices: *const *const c_void, drawcount: i32, basevertex: *const i32, ) -> Result<(), GLCoreError>
Source§fn glProvokingVertex(&self, mode: u32) -> Result<(), GLCoreError>
fn glProvokingVertex(&self, mode: u32) -> Result<(), GLCoreError>
Source§fn glFenceSync(
&self,
condition: u32,
flags: u32,
) -> Result<*mut c_void, GLCoreError>
fn glFenceSync( &self, condition: u32, flags: u32, ) -> Result<*mut c_void, GLCoreError>
Source§fn glDeleteSync(&self, sync: *mut c_void) -> Result<(), GLCoreError>
fn glDeleteSync(&self, sync: *mut c_void) -> Result<(), GLCoreError>
Source§fn glClientWaitSync(
&self,
sync: *mut c_void,
flags: u32,
timeout: u64,
) -> Result<u32, GLCoreError>
fn glClientWaitSync( &self, sync: *mut c_void, flags: u32, timeout: u64, ) -> Result<u32, GLCoreError>
Source§fn glWaitSync(
&self,
sync: *mut c_void,
flags: u32,
timeout: u64,
) -> Result<(), GLCoreError>
fn glWaitSync( &self, sync: *mut c_void, flags: u32, timeout: u64, ) -> Result<(), GLCoreError>
Source§fn glGetInteger64v(&self, pname: u32, data: *mut i64) -> Result<(), GLCoreError>
fn glGetInteger64v(&self, pname: u32, data: *mut i64) -> Result<(), GLCoreError>
Source§fn glGetSynciv(
&self,
sync: *mut c_void,
pname: u32,
count: i32,
length: *mut i32,
values: *mut i32,
) -> Result<(), GLCoreError>
fn glGetSynciv( &self, sync: *mut c_void, pname: u32, count: i32, length: *mut i32, values: *mut i32, ) -> Result<(), GLCoreError>
Source§fn glGetInteger64i_v(
&self,
target: u32,
index: u32,
data: *mut i64,
) -> Result<(), GLCoreError>
fn glGetInteger64i_v( &self, target: u32, index: u32, data: *mut i64, ) -> Result<(), GLCoreError>
Source§fn glGetBufferParameteri64v(
&self,
target: u32,
pname: u32,
params: *mut i64,
) -> Result<(), GLCoreError>
fn glGetBufferParameteri64v( &self, target: u32, pname: u32, params: *mut i64, ) -> Result<(), GLCoreError>
Source§fn glFramebufferTexture(
&self,
target: u32,
attachment: u32,
texture: u32,
level: i32,
) -> Result<(), GLCoreError>
fn glFramebufferTexture( &self, target: u32, attachment: u32, texture: u32, level: i32, ) -> Result<(), GLCoreError>
Source§fn glTexImage2DMultisample(
&self,
target: u32,
samples: i32,
internalformat: u32,
width: i32,
height: i32,
fixedsamplelocations: u8,
) -> Result<(), GLCoreError>
fn glTexImage2DMultisample( &self, target: u32, samples: i32, internalformat: u32, width: i32, height: i32, fixedsamplelocations: u8, ) -> Result<(), GLCoreError>
Source§fn glTexImage3DMultisample(
&self,
target: u32,
samples: i32,
internalformat: u32,
width: i32,
height: i32,
depth: i32,
fixedsamplelocations: u8,
) -> Result<(), GLCoreError>
fn glTexImage3DMultisample( &self, target: u32, samples: i32, internalformat: u32, width: i32, height: i32, depth: i32, fixedsamplelocations: u8, ) -> Result<(), GLCoreError>
Source§fn glGetMultisamplefv(
&self,
pname: u32,
index: u32,
val: *mut f32,
) -> Result<(), GLCoreError>
fn glGetMultisamplefv( &self, pname: u32, index: u32, val: *mut f32, ) -> Result<(), GLCoreError>
Source§fn glSampleMaski(&self, maskNumber: u32, mask: u32) -> Result<(), GLCoreError>
fn glSampleMaski(&self, maskNumber: u32, mask: u32) -> Result<(), GLCoreError>
impl Copy for Version32
impl Eq for Version32
impl StructuralPartialEq for Version32
Auto Trait Implementations§
impl Freeze for Version32
impl RefUnwindSafe for Version32
impl Send for Version32
impl Sync for Version32
impl Unpin for Version32
impl UnwindSafe for Version32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.