Struct Version30

Source
pub struct Version30 { /* private fields */ }

Implementations§

Source§

impl Version30

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 Version30

Source§

fn clone(&self) -> Version30

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 Version30

Source§

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

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

impl Default for Version30

Source§

fn default() -> Self

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

impl GL_3_0 for Version30

Source§

fn glGetError(&self) -> GLenum

Source§

fn glColorMaski( &self, index: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean, ) -> Result<()>

Source§

fn glGetBooleani_v( &self, target: GLenum, index: GLuint, data: *mut GLboolean, ) -> Result<()>

Source§

fn glGetIntegeri_v( &self, target: GLenum, index: GLuint, data: *mut GLint, ) -> Result<()>

Source§

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

Source§

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

Source§

fn glIsEnabledi(&self, target: GLenum, index: GLuint) -> Result<GLboolean>

Source§

fn glBeginTransformFeedback(&self, primitiveMode: GLenum) -> Result<()>

Source§

fn glEndTransformFeedback(&self) -> Result<()>

Source§

fn glBindBufferRange( &self, target: GLenum, index: GLuint, buffer: GLuint, offset: GLintptr, size: GLsizeiptr, ) -> Result<()>

Source§

fn glBindBufferBase( &self, target: GLenum, index: GLuint, buffer: GLuint, ) -> Result<()>

Source§

fn glTransformFeedbackVaryings( &self, program: GLuint, count: GLsizei, varyings: *const *const GLchar, bufferMode: GLenum, ) -> Result<()>

Source§

fn glGetTransformFeedbackVarying( &self, program: GLuint, index: GLuint, bufSize: GLsizei, length: *mut GLsizei, size: *mut GLsizei, type_: *mut GLenum, name: *mut GLchar, ) -> Result<()>

Source§

fn glClampColor(&self, target: GLenum, clamp: GLenum) -> Result<()>

Source§

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

Source§

fn glEndConditionalRender(&self) -> Result<()>

Source§

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

Source§

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

Source§

fn glGetVertexAttribIuiv( &self, index: GLuint, pname: GLenum, params: *mut GLuint, ) -> Result<()>

Source§

fn glVertexAttribI1i(&self, index: GLuint, x: GLint) -> Result<()>

Source§

fn glVertexAttribI2i(&self, index: GLuint, x: GLint, y: GLint) -> Result<()>

Source§

fn glVertexAttribI3i( &self, index: GLuint, x: GLint, y: GLint, z: GLint, ) -> Result<()>

Source§

fn glVertexAttribI4i( &self, index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint, ) -> Result<()>

Source§

fn glVertexAttribI1ui(&self, index: GLuint, x: GLuint) -> Result<()>

Source§

fn glVertexAttribI2ui(&self, index: GLuint, x: GLuint, y: GLuint) -> Result<()>

Source§

fn glVertexAttribI3ui( &self, index: GLuint, x: GLuint, y: GLuint, z: GLuint, ) -> Result<()>

Source§

fn glVertexAttribI4ui( &self, index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint, ) -> Result<()>

Source§

fn glVertexAttribI1iv(&self, index: GLuint, v: *const GLint) -> Result<()>

Source§

fn glVertexAttribI2iv(&self, index: GLuint, v: *const GLint) -> Result<()>

Source§

fn glVertexAttribI3iv(&self, index: GLuint, v: *const GLint) -> Result<()>

Source§

fn glVertexAttribI4iv(&self, index: GLuint, v: *const GLint) -> Result<()>

Source§

fn glVertexAttribI1uiv(&self, index: GLuint, v: *const GLuint) -> Result<()>

Source§

fn glVertexAttribI2uiv(&self, index: GLuint, v: *const GLuint) -> Result<()>

Source§

fn glVertexAttribI3uiv(&self, index: GLuint, v: *const GLuint) -> Result<()>

Source§

fn glVertexAttribI4uiv(&self, index: GLuint, v: *const GLuint) -> Result<()>

Source§

fn glVertexAttribI4bv(&self, index: GLuint, v: *const GLbyte) -> Result<()>

Source§

fn glVertexAttribI4sv(&self, index: GLuint, v: *const GLshort) -> Result<()>

Source§

fn glVertexAttribI4ubv(&self, index: GLuint, v: *const GLubyte) -> Result<()>

Source§

fn glVertexAttribI4usv(&self, index: GLuint, v: *const GLushort) -> Result<()>

Source§

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

Source§

fn glBindFragDataLocation( &self, program: GLuint, color: GLuint, name: *const GLchar, ) -> Result<()>

Source§

fn glGetFragDataLocation( &self, program: GLuint, name: *const GLchar, ) -> Result<GLint>

Source§

fn glUniform1ui(&self, location: GLint, v0: GLuint) -> Result<()>

Source§

fn glUniform2ui(&self, location: GLint, v0: GLuint, v1: GLuint) -> Result<()>

Source§

fn glUniform3ui( &self, location: GLint, v0: GLuint, v1: GLuint, v2: GLuint, ) -> Result<()>

Source§

fn glUniform4ui( &self, location: GLint, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint, ) -> Result<()>

Source§

fn glUniform1uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, ) -> Result<()>

Source§

fn glUniform2uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, ) -> Result<()>

Source§

fn glUniform3uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, ) -> Result<()>

Source§

fn glUniform4uiv( &self, location: GLint, count: GLsizei, value: *const GLuint, ) -> Result<()>

Source§

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

Source§

fn glTexParameterIuiv( &self, target: GLenum, pname: GLenum, params: *const GLuint, ) -> Result<()>

Source§

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

Source§

fn glGetTexParameterIuiv( &self, target: GLenum, pname: GLenum, params: *mut GLuint, ) -> Result<()>

Source§

fn glClearBufferiv( &self, buffer: GLenum, drawbuffer: GLint, value: *const GLint, ) -> Result<()>

Source§

fn glClearBufferuiv( &self, buffer: GLenum, drawbuffer: GLint, value: *const GLuint, ) -> Result<()>

Source§

fn glClearBufferfv( &self, buffer: GLenum, drawbuffer: GLint, value: *const GLfloat, ) -> Result<()>

Source§

fn glClearBufferfi( &self, buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint, ) -> Result<()>

Source§

fn glGetStringi(&self, name: GLenum, index: GLuint) -> Result<&'static str>

Source§

fn glIsRenderbuffer(&self, renderbuffer: GLuint) -> Result<GLboolean>

Source§

fn glBindRenderbuffer(&self, target: GLenum, renderbuffer: GLuint) -> Result<()>

Source§

fn glDeleteRenderbuffers( &self, n: GLsizei, renderbuffers: *const GLuint, ) -> Result<()>

Source§

fn glGenRenderbuffers( &self, n: GLsizei, renderbuffers: *mut GLuint, ) -> Result<()>

Source§

fn glRenderbufferStorage( &self, target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei, ) -> Result<()>

Source§

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

Source§

fn glIsFramebuffer(&self, framebuffer: GLuint) -> Result<GLboolean>

Source§

fn glBindFramebuffer(&self, target: GLenum, framebuffer: GLuint) -> Result<()>

Source§

fn glDeleteFramebuffers( &self, n: GLsizei, framebuffers: *const GLuint, ) -> Result<()>

Source§

fn glGenFramebuffers(&self, n: GLsizei, framebuffers: *mut GLuint) -> Result<()>

Source§

fn glCheckFramebufferStatus(&self, target: GLenum) -> Result<GLenum>

Source§

fn glFramebufferTexture1D( &self, target: GLenum, attachment: GLenum, textarget: GLenum, texture: GLuint, level: GLint, ) -> Result<()>

Source§

fn glFramebufferTexture2D( &self, target: GLenum, attachment: GLenum, textarget: GLenum, texture: GLuint, level: GLint, ) -> Result<()>

Source§

fn glFramebufferTexture3D( &self, target: GLenum, attachment: GLenum, textarget: GLenum, texture: GLuint, level: GLint, zoffset: GLint, ) -> Result<()>

Source§

fn glFramebufferRenderbuffer( &self, target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: GLuint, ) -> Result<()>

Source§

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

Source§

fn glGenerateMipmap(&self, target: GLenum) -> Result<()>

Source§

fn glBlitFramebuffer( &self, srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum, ) -> Result<()>

Source§

fn glRenderbufferStorageMultisample( &self, target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, ) -> Result<()>

Source§

fn glFramebufferTextureLayer( &self, target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint, ) -> Result<()>

Source§

fn glMapBufferRange( &self, target: GLenum, offset: GLintptr, length: GLsizeiptr, access: GLbitfield, ) -> Result<*mut c_void>

Source§

fn glFlushMappedBufferRange( &self, target: GLenum, offset: GLintptr, length: GLsizeiptr, ) -> Result<()>

Source§

fn glBindVertexArray(&self, array: GLuint) -> Result<()>

Source§

fn glDeleteVertexArrays(&self, n: GLsizei, arrays: *const GLuint) -> Result<()>

Source§

fn glGenVertexArrays(&self, n: GLsizei, arrays: *mut GLuint) -> Result<()>

Source§

fn glIsVertexArray(&self, array: GLuint) -> Result<GLboolean>

Source§

impl Hash for Version30

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 Version30

Source§

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

Source§

impl Eq for Version30

Source§

impl StructuralPartialEq for Version30

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.