[−][src]Struct kiss3d::context::Context
Methods
impl Context
[src]
pub const FLOAT: u32
[src]
pub const INT: u32
[src]
pub const UNSIGNED_INT: u32
[src]
pub const UNSIGNED_SHORT: u32
[src]
pub const STATIC_DRAW: u32
[src]
pub const DYNAMIC_DRAW: u32
[src]
pub const STREAM_DRAW: u32
[src]
pub const ARRAY_BUFFER: u32
[src]
pub const ELEMENT_ARRAY_BUFFER: u32
[src]
pub const VERTEX_SHADER: u32
[src]
pub const FRAGMENT_SHADER: u32
[src]
pub const COMPILE_STATUS: u32
[src]
pub const FRAMEBUFFER: u32
[src]
pub const DEPTH_ATTACHMENT: u32
[src]
pub const COLOR_ATTACHMENT0: u32
[src]
pub const TEXTURE_2D: u32
[src]
pub const DEPTH_COMPONENT: u32
[src]
pub const UNSIGNED_BYTE: u32
[src]
pub const TEXTURE_WRAP_S: u32
[src]
pub const TEXTURE_WRAP_T: u32
[src]
pub const TEXTURE_MIN_FILTER: u32
[src]
pub const TEXTURE_MAG_FILTER: u32
[src]
pub const LINEAR: u32
[src]
pub const NEAREST: u32
[src]
pub const CLAMP_TO_EDGE: u32
[src]
pub const RGB: u32
[src]
pub const RGBA: u32
[src]
pub const TEXTURE0: u32
[src]
pub const TEXTURE1: u32
[src]
pub const REPEAT: u32
[src]
pub const MIRRORED_REPEAT: u32
[src]
pub const LINEAR_MIPMAP_LINEAR: u32
[src]
pub const TRIANGLES: u32
[src]
pub const CULL_FACE: u32
[src]
pub const FRONT_AND_BACK: u32
[src]
pub const FILL: u32
[src]
pub const LINE: u32
[src]
pub const POINT: u32
[src]
pub const LINES: u32
[src]
pub const POINTS: u32
[src]
pub const TRIANGLE_STRIP: u32
[src]
pub const COLOR_BUFFER_BIT: u32
[src]
pub const DEPTH_BUFFER_BIT: u32
[src]
pub const CCW: u32
[src]
pub const DEPTH_TEST: u32
[src]
pub const SCISSOR_TEST: u32
[src]
pub const PROGRAM_POINT_SIZE: u32
[src]
pub const LEQUAL: u32
[src]
pub const BACK: u32
[src]
pub const PACK_ALIGNMENT: u32
[src]
pub const BLEND: u32
[src]
pub const SRC_ALPHA: u32
[src]
pub const ONE_MINUS_SRC_ALPHA: u32
[src]
pub const UNPACK_ALIGNMENT: u32
[src]
pub const ALPHA: u32
[src]
pub const RED: u32
[src]
pub fn get() -> Context
[src]
pub fn get_error(&self) -> GLenum
[src]
pub fn uniform_matrix2fv(
&self,
location: Option<&UniformLocation>,
transpose: bool,
m: &Matrix2<f32>
)
[src]
&self,
location: Option<&UniformLocation>,
transpose: bool,
m: &Matrix2<f32>
)
pub fn uniform_matrix3fv(
&self,
location: Option<&UniformLocation>,
transpose: bool,
m: &Matrix3<f32>
)
[src]
&self,
location: Option<&UniformLocation>,
transpose: bool,
m: &Matrix3<f32>
)
pub fn uniform_matrix4fv(
&self,
location: Option<&UniformLocation>,
transpose: bool,
m: &Matrix4<f32>
)
[src]
&self,
location: Option<&UniformLocation>,
transpose: bool,
m: &Matrix4<f32>
)
pub fn uniform4f(
&self,
location: Option<&UniformLocation>,
x: f32,
y: f32,
z: f32,
w: f32
)
[src]
&self,
location: Option<&UniformLocation>,
x: f32,
y: f32,
z: f32,
w: f32
)
pub fn uniform3f(
&self,
location: Option<&UniformLocation>,
x: f32,
y: f32,
z: f32
)
[src]
&self,
location: Option<&UniformLocation>,
x: f32,
y: f32,
z: f32
)
pub fn uniform2f(&self, location: Option<&UniformLocation>, x: f32, y: f32)
[src]
pub fn uniform1f(&self, location: Option<&UniformLocation>, x: f32)
[src]
pub fn uniform3i(
&self,
location: Option<&UniformLocation>,
x: i32,
y: i32,
z: i32
)
[src]
&self,
location: Option<&UniformLocation>,
x: i32,
y: i32,
z: i32
)
pub fn uniform2i(&self, location: Option<&UniformLocation>, x: i32, y: i32)
[src]
pub fn uniform1i(&self, location: Option<&UniformLocation>, x: i32)
[src]
pub fn create_buffer(&self) -> Option<Buffer>
[src]
pub fn delete_buffer(&self, buffer: Option<&Buffer>)
[src]
pub fn bind_buffer(&self, target: GLenum, buffer: Option<&Buffer>)
[src]
pub fn is_buffer(&self, buffer: Option<&Buffer>) -> bool
[src]
pub fn buffer_data<T: GLPrimitive>(
&self,
target: GLenum,
data: &[T],
usage: GLenum
)
[src]
&self,
target: GLenum,
data: &[T],
usage: GLenum
)
pub fn buffer_sub_data<T: GLPrimitive>(
&self,
target: GLenum,
offset: GLintptr,
data: &[T]
)
[src]
&self,
target: GLenum,
offset: GLintptr,
data: &[T]
)
pub fn create_shader(&self, type_: GLenum) -> Option<Shader>
[src]
pub fn create_program(&self) -> Option<Program>
[src]
pub fn delete_program(&self, program: Option<&Program>)
[src]
pub fn delete_shader(&self, shader: Option<&Shader>)
[src]
pub fn is_shader(&self, shader: Option<&Shader>) -> bool
[src]
pub fn is_program(&self, program: Option<&Program>) -> bool
[src]
pub fn shader_source(&self, shader: &Shader, source: &str)
[src]
pub fn compile_shader(&self, shader: &Shader)
[src]
pub fn link_program(&self, program: &Program)
[src]
pub fn use_program(&self, program: Option<&Program>)
[src]
pub fn attach_shader(&self, program: &Program, shader: &Shader)
[src]
pub fn get_shader_parameter_int(
&self,
shader: &Shader,
pname: GLenum
) -> Option<i32>
[src]
&self,
shader: &Shader,
pname: GLenum
) -> Option<i32>
pub fn get_shader_info_log(&self, shader: &Shader) -> Option<String>
[src]
pub fn vertex_attrib_pointer(
&self,
index: u32,
size: i32,
type_: GLenum,
normalized: bool,
stride: i32,
offset: GLintptr
)
[src]
&self,
index: u32,
size: i32,
type_: GLenum,
normalized: bool,
stride: i32,
offset: GLintptr
)
pub fn enable_vertex_attrib_array(&self, index: u32)
[src]
pub fn disable_vertex_attrib_array(&self, index: u32)
[src]
pub fn get_attrib_location(&self, program: &Program, name: &str) -> i32
[src]
pub fn get_uniform_location(
&self,
program: &Program,
name: &str
) -> Option<UniformLocation>
[src]
&self,
program: &Program,
name: &str
) -> Option<UniformLocation>
pub fn viewport(&self, x: i32, y: i32, width: i32, height: i32)
[src]
pub fn scissor(&self, x: i32, y: i32, width: i32, height: i32)
[src]
pub fn create_framebuffer(&self) -> Option<Framebuffer>
[src]
pub fn is_framebuffer(&self, framebuffer: Option<&Framebuffer>) -> bool
[src]
pub fn bind_framebuffer(
&self,
target: GLenum,
framebuffer: Option<&Framebuffer>
)
[src]
&self,
target: GLenum,
framebuffer: Option<&Framebuffer>
)
pub fn delete_framebuffer(&self, framebuffer: Option<&Framebuffer>)
[src]
pub fn framebuffer_texture2d(
&self,
target: GLenum,
attachment: GLenum,
textarget: GLenum,
texture: Option<&Texture>,
level: i32
)
[src]
&self,
target: GLenum,
attachment: GLenum,
textarget: GLenum,
texture: Option<&Texture>,
level: i32
)
pub fn bind_texture(&self, target: GLenum, texture: Option<&Texture>)
[src]
pub fn tex_image2d(
&self,
target: GLenum,
level: i32,
internalformat: i32,
width: i32,
height: i32,
border: i32,
format: GLenum,
pixels: Option<&[u8]>
)
[src]
&self,
target: GLenum,
level: i32,
internalformat: i32,
width: i32,
height: i32,
border: i32,
format: GLenum,
pixels: Option<&[u8]>
)
pub fn tex_image2di(
&self,
target: GLenum,
level: i32,
internalformat: i32,
width: i32,
height: i32,
border: i32,
format: GLenum,
pixels: Option<&[i32]>
)
[src]
&self,
target: GLenum,
level: i32,
internalformat: i32,
width: i32,
height: i32,
border: i32,
format: GLenum,
pixels: Option<&[i32]>
)
pub fn tex_sub_image2d(
&self,
target: GLenum,
level: i32,
xoffset: i32,
yoffset: i32,
width: i32,
height: i32,
format: GLenum,
pixels: Option<&[u8]>
)
[src]
&self,
target: GLenum,
level: i32,
xoffset: i32,
yoffset: i32,
width: i32,
height: i32,
format: GLenum,
pixels: Option<&[u8]>
)
pub fn tex_parameteri(&self, target: GLenum, pname: GLenum, param: i32)
[src]
pub fn is_texture(&self, texture: Option<&Texture>) -> bool
[src]
pub fn create_texture(&self) -> Option<Texture>
[src]
pub fn delete_texture(&self, texture: Option<&Texture>)
[src]
pub fn active_texture(&self, texture: GLenum)
[src]
pub fn enable(&self, cap: GLenum)
[src]
pub fn disable(&self, cap: GLenum)
[src]
pub fn draw_elements(
&self,
mode: GLenum,
count: i32,
type_: GLenum,
offset: GLintptr
)
[src]
&self,
mode: GLenum,
count: i32,
type_: GLenum,
offset: GLintptr
)
pub fn draw_arrays(&self, mode: GLenum, first: i32, count: i32)
[src]
pub fn point_size(&self, size: f32)
[src]
pub fn line_width(&self, size: f32)
[src]
pub fn clear(&self, mask: u32)
[src]
pub fn clear_color(&self, r: f32, g: f32, b: f32, a: f32)
[src]
pub fn polygon_mode(&self, face: GLenum, mode: GLenum) -> bool
[src]
pub fn front_face(&self, mode: GLenum)
[src]
pub fn depth_func(&self, mode: GLenum)
[src]
pub fn cull_face(&self, mode: GLenum)
[src]
pub fn read_pixels(
&self,
x: i32,
y: i32,
width: i32,
height: i32,
format: GLenum,
pixels: Option<&mut [u8]>
)
[src]
&self,
x: i32,
y: i32,
width: i32,
height: i32,
format: GLenum,
pixels: Option<&mut [u8]>
)
pub fn pixel_storei(&self, pname: GLenum, param: i32)
[src]
pub fn blend_func(&self, sfactor: GLenum, dfactor: GLenum)
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> Downcast for T where
T: Any,
T: Any,