Trait GL_3_1_g

Source
pub trait GL_3_1_g {
    // Required methods
    fn glDrawArraysInstanced(
        &self,
        mode: u32,
        first: i32,
        count: i32,
        instancecount: i32,
    ) -> Result<(), GLCoreError>;
    fn glDrawElementsInstanced(
        &self,
        mode: u32,
        count: i32,
        type_: u32,
        indices: *const c_void,
        instancecount: i32,
    ) -> Result<(), GLCoreError>;
    fn glTexBuffer(
        &self,
        target: u32,
        internalformat: u32,
        buffer: u32,
    ) -> Result<(), GLCoreError>;
    fn glPrimitiveRestartIndex(&self, index: u32) -> Result<(), GLCoreError>;
    fn glCopyBufferSubData(
        &self,
        readTarget: u32,
        writeTarget: u32,
        readOffset: usize,
        writeOffset: usize,
        size: usize,
    ) -> Result<(), GLCoreError>;
    fn glGetUniformIndices(
        &self,
        program: u32,
        uniformCount: i32,
        uniformNames: *const *const i8,
        uniformIndices: *mut u32,
    ) -> Result<(), GLCoreError>;
    fn glGetActiveUniformsiv(
        &self,
        program: u32,
        uniformCount: i32,
        uniformIndices: *const u32,
        pname: u32,
        params: *mut i32,
    ) -> Result<(), GLCoreError>;
    fn glGetActiveUniformName(
        &self,
        program: u32,
        uniformIndex: u32,
        bufSize: i32,
        length: *mut i32,
        uniformName: *mut i8,
    ) -> Result<(), GLCoreError>;
    fn glGetUniformBlockIndex(
        &self,
        program: u32,
        uniformBlockName: *const i8,
    ) -> Result<u32, GLCoreError>;
    fn glGetActiveUniformBlockiv(
        &self,
        program: u32,
        uniformBlockIndex: u32,
        pname: u32,
        params: *mut i32,
    ) -> Result<(), GLCoreError>;
    fn glGetActiveUniformBlockName(
        &self,
        program: u32,
        uniformBlockIndex: u32,
        bufSize: i32,
        length: *mut i32,
        uniformBlockName: *mut i8,
    ) -> Result<(), GLCoreError>;
    fn glUniformBlockBinding(
        &self,
        program: u32,
        uniformBlockIndex: u32,
        uniformBlockBinding: u32,
    ) -> Result<(), GLCoreError>;
}
Expand description

Functions from OpenGL version 3.1 for the struct GLCore without dupliacted functions.

Required Methods§

Source

fn glDrawArraysInstanced( &self, mode: u32, first: i32, count: i32, instancecount: i32, ) -> Result<(), GLCoreError>

Source

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

Source

fn glTexBuffer( &self, target: u32, internalformat: u32, buffer: u32, ) -> Result<(), GLCoreError>

Source

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

Source

fn glCopyBufferSubData( &self, readTarget: u32, writeTarget: u32, readOffset: usize, writeOffset: usize, size: usize, ) -> Result<(), GLCoreError>

Source

fn glGetUniformIndices( &self, program: u32, uniformCount: i32, uniformNames: *const *const i8, uniformIndices: *mut u32, ) -> Result<(), GLCoreError>

Source

fn glGetActiveUniformsiv( &self, program: u32, uniformCount: i32, uniformIndices: *const u32, pname: u32, params: *mut i32, ) -> Result<(), GLCoreError>

Source

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

Source

fn glGetUniformBlockIndex( &self, program: u32, uniformBlockName: *const i8, ) -> Result<u32, GLCoreError>

Source

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

Source

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

Source

fn glUniformBlockBinding( &self, program: u32, uniformBlockIndex: u32, uniformBlockBinding: u32, ) -> Result<(), GLCoreError>

Implementors§