[][src]Struct kiss3d::context::Context

pub struct Context { /* fields omitted */ }

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]

pub fn uniform_matrix3fv(
    &self,
    location: Option<&UniformLocation>,
    transpose: bool,
    m: &Matrix3<f32>
)
[src]

pub fn uniform_matrix4fv(
    &self,
    location: Option<&UniformLocation>,
    transpose: bool,
    m: &Matrix4<f32>
)
[src]

pub fn uniform4f(
    &self,
    location: Option<&UniformLocation>,
    x: f32,
    y: f32,
    z: f32,
    w: f32
)
[src]

pub fn uniform3f(
    &self,
    location: Option<&UniformLocation>,
    x: f32,
    y: f32,
    z: f32
)
[src]

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]

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]

pub fn buffer_sub_data<T: GLPrimitive>(
    &self,
    target: GLenum,
    offset: GLintptr,
    data: &[T]
)
[src]

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 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]

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]

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]

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]

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]

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]

pub fn tex_image2di(
    &self,
    target: GLenum,
    level: i32,
    internalformat: i32,
    width: i32,
    height: i32,
    border: i32,
    format: GLenum,
    pixels: Option<&[i32]>
)
[src]

pub fn tex_sub_image2d(
    &self,
    target: GLenum,
    level: i32,
    xoffset: i32,
    yoffset: i32,
    width: i32,
    height: i32,
    format: GLenum,
    pixels: Option<&[u8]>
)
[src]

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]

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]

pub fn pixel_storei(&self, pname: GLenum, param: i32)[src]

pub fn blend_func(&self, sfactor: GLenum, dfactor: GLenum)[src]

Trait Implementations

impl Clone for Context[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Context

impl Sync for Context

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    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>, 

impl<T> Downcast for T where
    T: Any