pub trait GL_1_1_g {
Show 14 methods
// Required methods
fn glDrawArrays(
&self,
mode: u32,
first: i32,
count: i32,
) -> Result<(), GLCoreError>;
fn glDrawElements(
&self,
mode: u32,
count: i32,
type_: u32,
indices: *const c_void,
) -> Result<(), GLCoreError>;
fn glGetPointerv(
&self,
pname: u32,
params: *mut *mut c_void,
) -> Result<(), GLCoreError>;
fn glPolygonOffset(
&self,
factor: f32,
units: f32,
) -> Result<(), GLCoreError>;
fn glCopyTexImage1D(
&self,
target: u32,
level: i32,
internalformat: u32,
x: i32,
y: i32,
width: i32,
border: i32,
) -> Result<(), GLCoreError>;
fn glCopyTexImage2D(
&self,
target: u32,
level: i32,
internalformat: u32,
x: i32,
y: i32,
width: i32,
height: i32,
border: i32,
) -> Result<(), GLCoreError>;
fn glCopyTexSubImage1D(
&self,
target: u32,
level: i32,
xoffset: i32,
x: i32,
y: i32,
width: i32,
) -> Result<(), GLCoreError>;
fn glCopyTexSubImage2D(
&self,
target: u32,
level: i32,
xoffset: i32,
yoffset: i32,
x: i32,
y: i32,
width: i32,
height: i32,
) -> Result<(), GLCoreError>;
fn glTexSubImage1D(
&self,
target: u32,
level: i32,
xoffset: i32,
width: i32,
format: u32,
type_: u32,
pixels: *const c_void,
) -> Result<(), GLCoreError>;
fn glTexSubImage2D(
&self,
target: u32,
level: i32,
xoffset: i32,
yoffset: i32,
width: i32,
height: i32,
format: u32,
type_: u32,
pixels: *const c_void,
) -> Result<(), GLCoreError>;
fn glBindTexture(
&self,
target: u32,
texture: u32,
) -> Result<(), GLCoreError>;
fn glDeleteTextures(
&self,
n: i32,
textures: *const u32,
) -> Result<(), GLCoreError>;
fn glGenTextures(
&self,
n: i32,
textures: *mut u32,
) -> Result<(), GLCoreError>;
fn glIsTexture(&self, texture: u32) -> Result<u8, GLCoreError>;
}Expand description
Functions from OpenGL version 1.1 for the struct GLCore without dupliacted functions.