Struct Version20

Source
pub struct Version20 {
Show 94 fields pub geterror: extern "system" fn() -> u32, pub blendequationseparate: extern "system" fn(u32, u32), pub drawbuffers: extern "system" fn(i32, *const u32), pub stencilopseparate: extern "system" fn(u32, u32, u32, u32), pub stencilfuncseparate: extern "system" fn(u32, u32, i32, u32), pub stencilmaskseparate: extern "system" fn(u32, u32), pub attachshader: extern "system" fn(u32, u32), pub bindattriblocation: extern "system" fn(u32, u32, *const i8), pub compileshader: extern "system" fn(u32), pub createprogram: extern "system" fn() -> u32, pub createshader: extern "system" fn(u32) -> u32, pub deleteprogram: extern "system" fn(u32), pub deleteshader: extern "system" fn(u32), pub detachshader: extern "system" fn(u32, u32), pub disablevertexattribarray: extern "system" fn(u32), pub enablevertexattribarray: extern "system" fn(u32), pub getactiveattrib: extern "system" fn(u32, u32, i32, *mut i32, *mut i32, *mut u32, *mut i8), pub getactiveuniform: extern "system" fn(u32, u32, i32, *mut i32, *mut i32, *mut u32, *mut i8), pub getattachedshaders: extern "system" fn(u32, i32, *mut i32, *mut u32), pub getattriblocation: extern "system" fn(u32, *const i8) -> i32, pub getprogramiv: extern "system" fn(u32, u32, *mut i32), pub getprograminfolog: extern "system" fn(u32, i32, *mut i32, *mut i8), pub getshaderiv: extern "system" fn(u32, u32, *mut i32), pub getshaderinfolog: extern "system" fn(u32, i32, *mut i32, *mut i8), pub getshadersource: extern "system" fn(u32, i32, *mut i32, *mut i8), pub getuniformlocation: extern "system" fn(u32, *const i8) -> i32, pub getuniformfv: extern "system" fn(u32, i32, *mut f32), pub getuniformiv: extern "system" fn(u32, i32, *mut i32), pub getvertexattribdv: extern "system" fn(u32, u32, *mut f64), pub getvertexattribfv: extern "system" fn(u32, u32, *mut f32), pub getvertexattribiv: extern "system" fn(u32, u32, *mut i32), pub getvertexattribpointerv: extern "system" fn(u32, u32, *mut *mut c_void), pub isprogram: extern "system" fn(u32) -> u8, pub isshader: extern "system" fn(u32) -> u8, pub linkprogram: extern "system" fn(u32), pub shadersource: extern "system" fn(u32, i32, *const *const i8, *const i32), pub useprogram: extern "system" fn(u32), pub uniform1f: extern "system" fn(i32, f32), pub uniform2f: extern "system" fn(i32, f32, f32), pub uniform3f: extern "system" fn(i32, f32, f32, f32), pub uniform4f: extern "system" fn(i32, f32, f32, f32, f32), pub uniform1i: extern "system" fn(i32, i32), pub uniform2i: extern "system" fn(i32, i32, i32), pub uniform3i: extern "system" fn(i32, i32, i32, i32), pub uniform4i: extern "system" fn(i32, i32, i32, i32, i32), pub uniform1fv: extern "system" fn(i32, i32, *const f32), pub uniform2fv: extern "system" fn(i32, i32, *const f32), pub uniform3fv: extern "system" fn(i32, i32, *const f32), pub uniform4fv: extern "system" fn(i32, i32, *const f32), pub uniform1iv: extern "system" fn(i32, i32, *const i32), pub uniform2iv: extern "system" fn(i32, i32, *const i32), pub uniform3iv: extern "system" fn(i32, i32, *const i32), pub uniform4iv: extern "system" fn(i32, i32, *const i32), pub uniformmatrix2fv: extern "system" fn(i32, i32, u8, *const f32), pub uniformmatrix3fv: extern "system" fn(i32, i32, u8, *const f32), pub uniformmatrix4fv: extern "system" fn(i32, i32, u8, *const f32), pub validateprogram: extern "system" fn(u32), pub vertexattrib1d: extern "system" fn(u32, f64), pub vertexattrib1dv: extern "system" fn(u32, *const f64), pub vertexattrib1f: extern "system" fn(u32, f32), pub vertexattrib1fv: extern "system" fn(u32, *const f32), pub vertexattrib1s: extern "system" fn(u32, i16), pub vertexattrib1sv: extern "system" fn(u32, *const i16), pub vertexattrib2d: extern "system" fn(u32, f64, f64), pub vertexattrib2dv: extern "system" fn(u32, *const f64), pub vertexattrib2f: extern "system" fn(u32, f32, f32), pub vertexattrib2fv: extern "system" fn(u32, *const f32), pub vertexattrib2s: extern "system" fn(u32, i16, i16), pub vertexattrib2sv: extern "system" fn(u32, *const i16), pub vertexattrib3d: extern "system" fn(u32, f64, f64, f64), pub vertexattrib3dv: extern "system" fn(u32, *const f64), pub vertexattrib3f: extern "system" fn(u32, f32, f32, f32), pub vertexattrib3fv: extern "system" fn(u32, *const f32), pub vertexattrib3s: extern "system" fn(u32, i16, i16, i16), pub vertexattrib3sv: extern "system" fn(u32, *const i16), pub vertexattrib4nbv: extern "system" fn(u32, *const i8), pub vertexattrib4niv: extern "system" fn(u32, *const i32), pub vertexattrib4nsv: extern "system" fn(u32, *const i16), pub vertexattrib4nub: extern "system" fn(u32, u8, u8, u8, u8), pub vertexattrib4nubv: extern "system" fn(u32, *const u8), pub vertexattrib4nuiv: extern "system" fn(u32, *const u32), pub vertexattrib4nusv: extern "system" fn(u32, *const u16), pub vertexattrib4bv: extern "system" fn(u32, *const i8), pub vertexattrib4d: extern "system" fn(u32, f64, f64, f64, f64), pub vertexattrib4dv: extern "system" fn(u32, *const f64), pub vertexattrib4f: extern "system" fn(u32, f32, f32, f32, f32), pub vertexattrib4fv: extern "system" fn(u32, *const f32), pub vertexattrib4iv: extern "system" fn(u32, *const i32), pub vertexattrib4s: extern "system" fn(u32, i16, i16, i16, i16), pub vertexattrib4sv: extern "system" fn(u32, *const i16), pub vertexattrib4ubv: extern "system" fn(u32, *const u8), pub vertexattrib4uiv: extern "system" fn(u32, *const u32), pub vertexattrib4usv: extern "system" fn(u32, *const u16), pub vertexattribpointer: extern "system" fn(u32, i32, u32, u8, i32, *const c_void), /* private fields */
}
Expand description

Functions from OpenGL version 2.0

Fields§

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

The function pointer to glGetError()

§blendequationseparate: extern "system" fn(u32, u32)

The function pointer to glBlendEquationSeparate()

§drawbuffers: extern "system" fn(i32, *const u32)

The function pointer to glDrawBuffers()

§stencilopseparate: extern "system" fn(u32, u32, u32, u32)

The function pointer to glStencilOpSeparate()

§stencilfuncseparate: extern "system" fn(u32, u32, i32, u32)

The function pointer to glStencilFuncSeparate()

§stencilmaskseparate: extern "system" fn(u32, u32)

The function pointer to glStencilMaskSeparate()

§attachshader: extern "system" fn(u32, u32)

The function pointer to glAttachShader()

§bindattriblocation: extern "system" fn(u32, u32, *const i8)

The function pointer to glBindAttribLocation()

§compileshader: extern "system" fn(u32)

The function pointer to glCompileShader()

§createprogram: extern "system" fn() -> u32

The function pointer to glCreateProgram()

§createshader: extern "system" fn(u32) -> u32

The function pointer to glCreateShader()

§deleteprogram: extern "system" fn(u32)

The function pointer to glDeleteProgram()

§deleteshader: extern "system" fn(u32)

The function pointer to glDeleteShader()

§detachshader: extern "system" fn(u32, u32)

The function pointer to glDetachShader()

§disablevertexattribarray: extern "system" fn(u32)

The function pointer to glDisableVertexAttribArray()

§enablevertexattribarray: extern "system" fn(u32)

The function pointer to glEnableVertexAttribArray()

§getactiveattrib: extern "system" fn(u32, u32, i32, *mut i32, *mut i32, *mut u32, *mut i8)

The function pointer to glGetActiveAttrib()

§getactiveuniform: extern "system" fn(u32, u32, i32, *mut i32, *mut i32, *mut u32, *mut i8)

The function pointer to glGetActiveUniform()

§getattachedshaders: extern "system" fn(u32, i32, *mut i32, *mut u32)

The function pointer to glGetAttachedShaders()

§getattriblocation: extern "system" fn(u32, *const i8) -> i32

The function pointer to glGetAttribLocation()

§getprogramiv: extern "system" fn(u32, u32, *mut i32)

The function pointer to glGetProgramiv()

§getprograminfolog: extern "system" fn(u32, i32, *mut i32, *mut i8)

The function pointer to glGetProgramInfoLog()

§getshaderiv: extern "system" fn(u32, u32, *mut i32)

The function pointer to glGetShaderiv()

§getshaderinfolog: extern "system" fn(u32, i32, *mut i32, *mut i8)

The function pointer to glGetShaderInfoLog()

§getshadersource: extern "system" fn(u32, i32, *mut i32, *mut i8)

The function pointer to glGetShaderSource()

§getuniformlocation: extern "system" fn(u32, *const i8) -> i32

The function pointer to glGetUniformLocation()

§getuniformfv: extern "system" fn(u32, i32, *mut f32)

The function pointer to glGetUniformfv()

§getuniformiv: extern "system" fn(u32, i32, *mut i32)

The function pointer to glGetUniformiv()

§getvertexattribdv: extern "system" fn(u32, u32, *mut f64)

The function pointer to glGetVertexAttribdv()

§getvertexattribfv: extern "system" fn(u32, u32, *mut f32)

The function pointer to glGetVertexAttribfv()

§getvertexattribiv: extern "system" fn(u32, u32, *mut i32)

The function pointer to glGetVertexAttribiv()

§getvertexattribpointerv: extern "system" fn(u32, u32, *mut *mut c_void)

The function pointer to glGetVertexAttribPointerv()

§isprogram: extern "system" fn(u32) -> u8

The function pointer to glIsProgram()

§isshader: extern "system" fn(u32) -> u8

The function pointer to glIsShader()

§linkprogram: extern "system" fn(u32)

The function pointer to glLinkProgram()

§shadersource: extern "system" fn(u32, i32, *const *const i8, *const i32)

The function pointer to glShaderSource()

§useprogram: extern "system" fn(u32)

The function pointer to glUseProgram()

§uniform1f: extern "system" fn(i32, f32)

The function pointer to glUniform1f()

§uniform2f: extern "system" fn(i32, f32, f32)

The function pointer to glUniform2f()

§uniform3f: extern "system" fn(i32, f32, f32, f32)

The function pointer to glUniform3f()

§uniform4f: extern "system" fn(i32, f32, f32, f32, f32)

The function pointer to glUniform4f()

§uniform1i: extern "system" fn(i32, i32)

The function pointer to glUniform1i()

§uniform2i: extern "system" fn(i32, i32, i32)

The function pointer to glUniform2i()

§uniform3i: extern "system" fn(i32, i32, i32, i32)

The function pointer to glUniform3i()

§uniform4i: extern "system" fn(i32, i32, i32, i32, i32)

The function pointer to glUniform4i()

§uniform1fv: extern "system" fn(i32, i32, *const f32)

The function pointer to glUniform1fv()

§uniform2fv: extern "system" fn(i32, i32, *const f32)

The function pointer to glUniform2fv()

§uniform3fv: extern "system" fn(i32, i32, *const f32)

The function pointer to glUniform3fv()

§uniform4fv: extern "system" fn(i32, i32, *const f32)

The function pointer to glUniform4fv()

§uniform1iv: extern "system" fn(i32, i32, *const i32)

The function pointer to glUniform1iv()

§uniform2iv: extern "system" fn(i32, i32, *const i32)

The function pointer to glUniform2iv()

§uniform3iv: extern "system" fn(i32, i32, *const i32)

The function pointer to glUniform3iv()

§uniform4iv: extern "system" fn(i32, i32, *const i32)

The function pointer to glUniform4iv()

§uniformmatrix2fv: extern "system" fn(i32, i32, u8, *const f32)

The function pointer to glUniformMatrix2fv()

§uniformmatrix3fv: extern "system" fn(i32, i32, u8, *const f32)

The function pointer to glUniformMatrix3fv()

§uniformmatrix4fv: extern "system" fn(i32, i32, u8, *const f32)

The function pointer to glUniformMatrix4fv()

§validateprogram: extern "system" fn(u32)

The function pointer to glValidateProgram()

§vertexattrib1d: extern "system" fn(u32, f64)

The function pointer to glVertexAttrib1d()

§vertexattrib1dv: extern "system" fn(u32, *const f64)

The function pointer to glVertexAttrib1dv()

§vertexattrib1f: extern "system" fn(u32, f32)

The function pointer to glVertexAttrib1f()

§vertexattrib1fv: extern "system" fn(u32, *const f32)

The function pointer to glVertexAttrib1fv()

§vertexattrib1s: extern "system" fn(u32, i16)

The function pointer to glVertexAttrib1s()

§vertexattrib1sv: extern "system" fn(u32, *const i16)

The function pointer to glVertexAttrib1sv()

§vertexattrib2d: extern "system" fn(u32, f64, f64)

The function pointer to glVertexAttrib2d()

§vertexattrib2dv: extern "system" fn(u32, *const f64)

The function pointer to glVertexAttrib2dv()

§vertexattrib2f: extern "system" fn(u32, f32, f32)

The function pointer to glVertexAttrib2f()

§vertexattrib2fv: extern "system" fn(u32, *const f32)

The function pointer to glVertexAttrib2fv()

§vertexattrib2s: extern "system" fn(u32, i16, i16)

The function pointer to glVertexAttrib2s()

§vertexattrib2sv: extern "system" fn(u32, *const i16)

The function pointer to glVertexAttrib2sv()

§vertexattrib3d: extern "system" fn(u32, f64, f64, f64)

The function pointer to glVertexAttrib3d()

§vertexattrib3dv: extern "system" fn(u32, *const f64)

The function pointer to glVertexAttrib3dv()

§vertexattrib3f: extern "system" fn(u32, f32, f32, f32)

The function pointer to glVertexAttrib3f()

§vertexattrib3fv: extern "system" fn(u32, *const f32)

The function pointer to glVertexAttrib3fv()

§vertexattrib3s: extern "system" fn(u32, i16, i16, i16)

The function pointer to glVertexAttrib3s()

§vertexattrib3sv: extern "system" fn(u32, *const i16)

The function pointer to glVertexAttrib3sv()

§vertexattrib4nbv: extern "system" fn(u32, *const i8)

The function pointer to glVertexAttrib4Nbv()

§vertexattrib4niv: extern "system" fn(u32, *const i32)

The function pointer to glVertexAttrib4Niv()

§vertexattrib4nsv: extern "system" fn(u32, *const i16)

The function pointer to glVertexAttrib4Nsv()

§vertexattrib4nub: extern "system" fn(u32, u8, u8, u8, u8)

The function pointer to glVertexAttrib4Nub()

§vertexattrib4nubv: extern "system" fn(u32, *const u8)

The function pointer to glVertexAttrib4Nubv()

§vertexattrib4nuiv: extern "system" fn(u32, *const u32)

The function pointer to glVertexAttrib4Nuiv()

§vertexattrib4nusv: extern "system" fn(u32, *const u16)

The function pointer to glVertexAttrib4Nusv()

§vertexattrib4bv: extern "system" fn(u32, *const i8)

The function pointer to glVertexAttrib4bv()

§vertexattrib4d: extern "system" fn(u32, f64, f64, f64, f64)

The function pointer to glVertexAttrib4d()

§vertexattrib4dv: extern "system" fn(u32, *const f64)

The function pointer to glVertexAttrib4dv()

§vertexattrib4f: extern "system" fn(u32, f32, f32, f32, f32)

The function pointer to glVertexAttrib4f()

§vertexattrib4fv: extern "system" fn(u32, *const f32)

The function pointer to glVertexAttrib4fv()

§vertexattrib4iv: extern "system" fn(u32, *const i32)

The function pointer to glVertexAttrib4iv()

§vertexattrib4s: extern "system" fn(u32, i16, i16, i16, i16)

The function pointer to glVertexAttrib4s()

§vertexattrib4sv: extern "system" fn(u32, *const i16)

The function pointer to glVertexAttrib4sv()

§vertexattrib4ubv: extern "system" fn(u32, *const u8)

The function pointer to glVertexAttrib4ubv()

§vertexattrib4uiv: extern "system" fn(u32, *const u32)

The function pointer to glVertexAttrib4uiv()

§vertexattrib4usv: extern "system" fn(u32, *const u16)

The function pointer to glVertexAttrib4usv()

§vertexattribpointer: extern "system" fn(u32, i32, u32, u8, i32, *const c_void)

The function pointer to glVertexAttribPointer()

Implementations§

Source§

impl Version20

Source

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

Source

pub fn get_available(&self) -> bool

Trait Implementations§

Source§

impl Clone for Version20

Source§

fn clone(&self) -> Version20

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 Version20

Source§

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

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

impl Default for Version20

Source§

fn default() -> Version20

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

impl GL_2_0 for Version20

Source§

fn glGetError(&self) -> u32

Source§

fn glBlendEquationSeparate( &self, modeRGB: u32, modeAlpha: u32, ) -> Result<(), GLCoreError>

Source§

fn glDrawBuffers(&self, n: i32, bufs: *const u32) -> Result<(), GLCoreError>

Source§

fn glStencilOpSeparate( &self, face: u32, sfail: u32, dpfail: u32, dppass: u32, ) -> Result<(), GLCoreError>

Source§

fn glStencilFuncSeparate( &self, face: u32, func: u32, ref_: i32, mask: u32, ) -> Result<(), GLCoreError>

Source§

fn glStencilMaskSeparate(&self, face: u32, mask: u32) -> Result<(), GLCoreError>

Source§

fn glAttachShader(&self, program: u32, shader: u32) -> Result<(), GLCoreError>

Source§

fn glBindAttribLocation( &self, program: u32, index: u32, name: *const i8, ) -> Result<(), GLCoreError>

Source§

fn glCompileShader(&self, shader: u32) -> Result<(), GLCoreError>

Source§

fn glCreateProgram(&self) -> Result<u32, GLCoreError>

Source§

fn glCreateShader(&self, type_: u32) -> Result<u32, GLCoreError>

Source§

fn glDeleteProgram(&self, program: u32) -> Result<(), GLCoreError>

Source§

fn glDeleteShader(&self, shader: u32) -> Result<(), GLCoreError>

Source§

fn glDetachShader(&self, program: u32, shader: u32) -> Result<(), GLCoreError>

Source§

fn glDisableVertexAttribArray(&self, index: u32) -> Result<(), GLCoreError>

Source§

fn glEnableVertexAttribArray(&self, index: u32) -> Result<(), GLCoreError>

Source§

fn glGetActiveAttrib( &self, program: u32, index: u32, bufSize: i32, length: *mut i32, size: *mut i32, type_: *mut u32, name: *mut i8, ) -> Result<(), GLCoreError>

Source§

fn glGetActiveUniform( &self, program: u32, index: u32, bufSize: i32, length: *mut i32, size: *mut i32, type_: *mut u32, name: *mut i8, ) -> Result<(), GLCoreError>

Source§

fn glGetAttachedShaders( &self, program: u32, maxCount: i32, count: *mut i32, shaders: *mut u32, ) -> Result<(), GLCoreError>

Source§

fn glGetAttribLocation( &self, program: u32, name: *const i8, ) -> Result<i32, GLCoreError>

Source§

fn glGetProgramiv( &self, program: u32, pname: u32, params: *mut i32, ) -> Result<(), GLCoreError>

Source§

fn glGetProgramInfoLog( &self, program: u32, bufSize: i32, length: *mut i32, infoLog: *mut i8, ) -> Result<(), GLCoreError>

Source§

fn glGetShaderiv( &self, shader: u32, pname: u32, params: *mut i32, ) -> Result<(), GLCoreError>

Source§

fn glGetShaderInfoLog( &self, shader: u32, bufSize: i32, length: *mut i32, infoLog: *mut i8, ) -> Result<(), GLCoreError>

Source§

fn glGetShaderSource( &self, shader: u32, bufSize: i32, length: *mut i32, source: *mut i8, ) -> Result<(), GLCoreError>

Source§

fn glGetUniformLocation( &self, program: u32, name: *const i8, ) -> Result<i32, GLCoreError>

Source§

fn glGetUniformfv( &self, program: u32, location: i32, params: *mut f32, ) -> Result<(), GLCoreError>

Source§

fn glGetUniformiv( &self, program: u32, location: i32, params: *mut i32, ) -> Result<(), GLCoreError>

Source§

fn glGetVertexAttribdv( &self, index: u32, pname: u32, params: *mut f64, ) -> Result<(), GLCoreError>

Source§

fn glGetVertexAttribfv( &self, index: u32, pname: u32, params: *mut f32, ) -> Result<(), GLCoreError>

Source§

fn glGetVertexAttribiv( &self, index: u32, pname: u32, params: *mut i32, ) -> Result<(), GLCoreError>

Source§

fn glGetVertexAttribPointerv( &self, index: u32, pname: u32, pointer: *mut *mut c_void, ) -> Result<(), GLCoreError>

Source§

fn glIsProgram(&self, program: u32) -> Result<u8, GLCoreError>

Source§

fn glIsShader(&self, shader: u32) -> Result<u8, GLCoreError>

Source§

fn glLinkProgram(&self, program: u32) -> Result<(), GLCoreError>

Source§

fn glShaderSource( &self, shader: u32, count: i32, string_: *const *const i8, length: *const i32, ) -> Result<(), GLCoreError>

Source§

fn glUseProgram(&self, program: u32) -> Result<(), GLCoreError>

Source§

fn glUniform1f(&self, location: i32, v0: f32) -> Result<(), GLCoreError>

Source§

fn glUniform2f( &self, location: i32, v0: f32, v1: f32, ) -> Result<(), GLCoreError>

Source§

fn glUniform3f( &self, location: i32, v0: f32, v1: f32, v2: f32, ) -> Result<(), GLCoreError>

Source§

fn glUniform4f( &self, location: i32, v0: f32, v1: f32, v2: f32, v3: f32, ) -> Result<(), GLCoreError>

Source§

fn glUniform1i(&self, location: i32, v0: i32) -> Result<(), GLCoreError>

Source§

fn glUniform2i( &self, location: i32, v0: i32, v1: i32, ) -> Result<(), GLCoreError>

Source§

fn glUniform3i( &self, location: i32, v0: i32, v1: i32, v2: i32, ) -> Result<(), GLCoreError>

Source§

fn glUniform4i( &self, location: i32, v0: i32, v1: i32, v2: i32, v3: i32, ) -> Result<(), GLCoreError>

Source§

fn glUniform1fv( &self, location: i32, count: i32, value: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glUniform2fv( &self, location: i32, count: i32, value: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glUniform3fv( &self, location: i32, count: i32, value: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glUniform4fv( &self, location: i32, count: i32, value: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glUniform1iv( &self, location: i32, count: i32, value: *const i32, ) -> Result<(), GLCoreError>

Source§

fn glUniform2iv( &self, location: i32, count: i32, value: *const i32, ) -> Result<(), GLCoreError>

Source§

fn glUniform3iv( &self, location: i32, count: i32, value: *const i32, ) -> Result<(), GLCoreError>

Source§

fn glUniform4iv( &self, location: i32, count: i32, value: *const i32, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix2fv( &self, location: i32, count: i32, transpose: u8, value: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix3fv( &self, location: i32, count: i32, transpose: u8, value: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glUniformMatrix4fv( &self, location: i32, count: i32, transpose: u8, value: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glValidateProgram(&self, program: u32) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib1d(&self, index: u32, x: f64) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib1dv( &self, index: u32, v: *const f64, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib1f(&self, index: u32, x: f32) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib1fv( &self, index: u32, v: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib1s(&self, index: u32, x: i16) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib1sv( &self, index: u32, v: *const i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib2d( &self, index: u32, x: f64, y: f64, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib2dv( &self, index: u32, v: *const f64, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib2f( &self, index: u32, x: f32, y: f32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib2fv( &self, index: u32, v: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib2s( &self, index: u32, x: i16, y: i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib2sv( &self, index: u32, v: *const i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib3d( &self, index: u32, x: f64, y: f64, z: f64, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib3dv( &self, index: u32, v: *const f64, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib3f( &self, index: u32, x: f32, y: f32, z: f32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib3fv( &self, index: u32, v: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib3s( &self, index: u32, x: i16, y: i16, z: i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib3sv( &self, index: u32, v: *const i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4Nbv( &self, index: u32, v: *const i8, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4Niv( &self, index: u32, v: *const i32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4Nsv( &self, index: u32, v: *const i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4Nub( &self, index: u32, x: u8, y: u8, z: u8, w: u8, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4Nubv( &self, index: u32, v: *const u8, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4Nuiv( &self, index: u32, v: *const u32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4Nusv( &self, index: u32, v: *const u16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4bv(&self, index: u32, v: *const i8) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4d( &self, index: u32, x: f64, y: f64, z: f64, w: f64, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4dv( &self, index: u32, v: *const f64, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4f( &self, index: u32, x: f32, y: f32, z: f32, w: f32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4fv( &self, index: u32, v: *const f32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4iv( &self, index: u32, v: *const i32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4s( &self, index: u32, x: i16, y: i16, z: i16, w: i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4sv( &self, index: u32, v: *const i16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4ubv( &self, index: u32, v: *const u8, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4uiv( &self, index: u32, v: *const u32, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttrib4usv( &self, index: u32, v: *const u16, ) -> Result<(), GLCoreError>

Source§

fn glVertexAttribPointer( &self, index: u32, size: i32, type_: u32, normalized: u8, stride: i32, pointer: *const c_void, ) -> Result<(), GLCoreError>

Source§

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

Source§

impl Hash for Version20

Source§

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

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 Version20

Source§

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

Source§

impl Eq for Version20

Source§

impl StructuralPartialEq for Version20

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> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

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

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows 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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows 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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<R, P> ReadPrimitive<R> for P
where R: Read + ReadEndian<P>, P: Default,

Source§

fn read_from_little_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_little_endian().
Source§

fn read_from_big_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian().
Source§

fn read_from_native_endian(read: &mut R) -> Result<Self, Error>

Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian().
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .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
where Self: BorrowMut<B>, B: ?Sized,

Calls .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
where Self: AsRef<R>, R: ?Sized,

Calls .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
where Self: AsMut<R>, R: ?Sized,

Calls .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
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
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> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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.
Source§

impl<T> BufferVecItem for T
where T: Copy + Default + Debug,

Source§

impl<T> PixelType for T
where T: BufferVecItem,

Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,