Trait GL_1_2

Source
pub trait GL_1_2 {
    // Required methods
    fn glGetError(&self) -> u32;
    fn glDrawRangeElements(
        &self,
        mode: u32,
        start: u32,
        end: u32,
        count: i32,
        type_: u32,
        indices: *const c_void,
    ) -> Result<(), GLCoreError>;
    fn glTexImage3D(
        &self,
        target: u32,
        level: i32,
        internalformat: i32,
        width: i32,
        height: i32,
        depth: i32,
        border: i32,
        format: u32,
        type_: u32,
        pixels: *const c_void,
    ) -> Result<(), GLCoreError>;
    fn glTexSubImage3D(
        &self,
        target: u32,
        level: i32,
        xoffset: i32,
        yoffset: i32,
        zoffset: i32,
        width: i32,
        height: i32,
        depth: i32,
        format: u32,
        type_: u32,
        pixels: *const c_void,
    ) -> Result<(), GLCoreError>;
    fn glCopyTexSubImage3D(
        &self,
        target: u32,
        level: i32,
        xoffset: i32,
        yoffset: i32,
        zoffset: i32,
        x: i32,
        y: i32,
        width: i32,
        height: i32,
    ) -> Result<(), GLCoreError>;
}
Expand description

Functions from OpenGL version 1.2

Required Methods§

Source

fn glGetError(&self) -> u32

Source

fn glDrawRangeElements( &self, mode: u32, start: u32, end: u32, count: i32, type_: u32, indices: *const c_void, ) -> Result<(), GLCoreError>

Source

fn glTexImage3D( &self, target: u32, level: i32, internalformat: i32, width: i32, height: i32, depth: i32, border: i32, format: u32, type_: u32, pixels: *const c_void, ) -> Result<(), GLCoreError>

Source

fn glTexSubImage3D( &self, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, width: i32, height: i32, depth: i32, format: u32, type_: u32, pixels: *const c_void, ) -> Result<(), GLCoreError>

Source

fn glCopyTexSubImage3D( &self, target: u32, level: i32, xoffset: i32, yoffset: i32, zoffset: i32, x: i32, y: i32, width: i32, height: i32, ) -> Result<(), GLCoreError>

Implementors§