[][src]Enum sparkle::gl::Gl

pub enum Gl {
    Gl(Gl),
    Gles(Gles2),
}

Variants

Gl(Gl)Gles(Gles2)

Methods

impl Gl[src]

pub fn get_type(&self) -> GlType[src]

pub fn gl_fns(gl: Gl) -> Rc<Gl>[src]

pub fn gles_fns(gl: Gles2) -> Rc<Gl>[src]

pub fn gen_framebuffers(&self, n: GLsizei) -> Vec<GLuint>[src]

pub fn gen_textures(&self, n: GLsizei) -> Vec<GLuint>[src]

pub fn gen_renderbuffers(&self, n: GLsizei) -> Vec<GLuint>[src]

pub fn gen_buffers(&self, n: GLsizei) -> Vec<GLuint>[src]

pub fn gen_vertex_arrays(&self, n: GLsizei) -> Vec<GLuint>[src]

pub fn shader_source(&self, shader: GLuint, strings: &[&[u8]])[src]

pub fn create_program(&self) -> GLuint[src]

pub fn tex_image_2d(
    &self,
    target: GLenum,
    level: GLint,
    internal_format: GLint,
    width: GLsizei,
    height: GLsizei,
    border: GLint,
    format: GLenum,
    ty: GLenum,
    opt_data: Option<&[u8]>
)
[src]

pub fn tex_sub_image_2d(
    &self,
    target: GLenum,
    level: GLint,
    xoffset: GLint,
    yoffset: GLint,
    width: GLsizei,
    height: GLsizei,
    format: GLenum,
    ty: GLenum,
    data: &[u8]
)
[src]

pub fn copy_tex_image_2d(
    &self,
    target: GLenum,
    level: GLint,
    internal_format: GLenum,
    x: GLint,
    y: GLint,
    width: GLsizei,
    height: GLsizei,
    border: GLint
)
[src]

pub fn copy_tex_sub_image_2d(
    &self,
    target: GLenum,
    level: GLint,
    xoffset: GLint,
    yoffset: GLint,
    x: GLint,
    y: GLint,
    width: GLsizei,
    height: GLsizei
)
[src]

pub fn compressed_tex_image_2d(
    &self,
    target: GLenum,
    level: GLint,
    internal_format: GLenum,
    width: GLsizei,
    height: GLsizei,
    border: GLint,
    data: &[u8]
)
[src]

pub fn compressed_tex_sub_image_2d(
    &self,
    target: GLenum,
    level: GLint,
    xoffset: GLint,
    yoffset: GLint,
    width: GLsizei,
    height: GLsizei,
    format: GLenum,
    data: &[u8]
)
[src]

pub fn generate_mipmap(&self, target: GLenum)[src]

pub fn active_texture(&self, texture: GLenum)[src]

pub fn attach_shader(&self, program: GLuint, shader: GLuint)[src]

pub fn create_shader(&self, shader_type: GLenum) -> GLuint[src]

pub fn delete_shader(&self, shader: GLuint)[src]

pub fn detach_shader(&self, program: GLuint, shader: GLuint)[src]

pub fn bind_buffer(&self, target: GLenum, buffer: GLuint)[src]

pub fn delete_buffers(&self, buffers: &[GLuint])[src]

pub fn validate_program(&self, program: GLuint)[src]

pub fn delete_program(&self, program: GLuint)[src]

pub fn delete_vertex_arrays(&self, vertex_arrays: &[GLuint])[src]

pub fn bind_vertex_array(&self, vao: GLuint)[src]

pub fn enable_vertex_attrib_array(&self, index: GLuint)[src]

pub fn disable_vertex_attrib_array(&self, index: GLuint)[src]

pub fn vertex_attrib_4f(
    &self,
    index: GLuint,
    x: GLfloat,
    y: GLfloat,
    z: GLfloat,
    w: GLfloat
)
[src]

pub fn vertex_attrib_pointer_f32(
    &self,
    index: GLuint,
    size: GLint,
    normalized: bool,
    stride: GLsizei,
    offset: GLuint
)
[src]

pub fn vertex_attrib_pointer(
    &self,
    index: GLuint,
    size: GLint,
    type_: GLenum,
    normalized: bool,
    stride: GLsizei,
    offset: GLuint
)
[src]

pub fn vertex_attrib_divisor(&self, index: GLuint, divisor: GLuint)[src]

pub fn bind_attrib_location(&self, program: GLuint, index: GLuint, name: &str)[src]

pub unsafe fn get_uniform_iv(
    &self,
    program: GLuint,
    location: GLint,
    result: &mut [GLint]
)
[src]

pub unsafe fn get_uniform_fv(
    &self,
    program: GLuint,
    location: GLint,
    result: &mut [GLfloat]
)
[src]

pub fn hint(&self, param_name: GLenum, param_val: GLenum)[src]

pub fn blend_color(&self, r: f32, g: f32, b: f32, a: f32)[src]

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

pub fn blend_func_separate(
    &self,
    src_rgb: GLenum,
    dest_rgb: GLenum,
    src_alpha: GLenum,
    dest_alpha: GLenum
)
[src]

pub fn blend_equation(&self, mode: GLenum)[src]

pub fn blend_equation_separate(&self, mode_rgb: GLenum, mode_alpha: GLenum)[src]

pub fn color_mask(&self, r: bool, g: bool, b: bool, a: bool)[src]

pub fn cull_face(&self, mode: GLenum)[src]

pub fn front_face(&self, mode: GLenum)[src]

pub fn depth_func(&self, func: GLenum)[src]

pub fn depth_mask(&self, flag: bool)[src]

pub fn depth_range(&self, near: f64, far: f64)[src]

pub fn line_width(&self, width: GLfloat)[src]

pub fn polygon_offset(&self, factor: GLfloat, units: GLfloat)[src]

pub fn sample_coverage(&self, value: GLclampf, invert: bool)[src]

pub fn clear_color(&self, r: f32, g: f32, b: f32, a: f32)[src]

pub fn clear_depth(&self, depth: f64)[src]

pub fn clear_stencil(&self, s: GLint)[src]

pub fn clear(&self, buffer_mask: GLbitfield)[src]

pub fn scissor(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei)[src]

pub fn stencil_op(&self, sfail: GLenum, dpfail: GLenum, dppass: GLenum)[src]

pub fn stencil_op_separate(
    &self,
    face: GLenum,
    sfail: GLenum,
    dpfail: GLenum,
    dppass: GLenum
)
[src]

pub fn stencil_mask(&self, mask: GLuint)[src]

pub fn stencil_mask_separate(&self, face: GLenum, mask: GLuint)[src]

pub fn stencil_func(&self, func: GLenum, ref_: GLint, mask: GLuint)[src]

pub fn stencil_func_separate(
    &self,
    face: GLenum,
    func: GLenum,
    ref_: GLint,
    mask: GLuint
)
[src]

pub fn is_enabled(&self, cap: GLenum) -> bool[src]

pub fn enable(&self, cap: GLenum)[src]

pub fn disable(&self, cap: GLenum)[src]

pub fn finish(&self)[src]

pub fn flush(&self)[src]

pub fn get_string(&self, which: GLenum) -> String[src]

pub fn get_string_i(&self, which: GLenum, index: GLuint) -> String[src]

pub unsafe fn get_shader_iv(
    &self,
    shader: GLuint,
    pname: GLenum,
    result: &mut [GLint]
)
[src]

pub fn get_shader_precision_format(
    &self,
    shader_type: GLuint,
    precision_type: GLuint
) -> (GLint, GLint, GLint)
[src]

pub fn viewport(&self, x: GLint, y: GLint, width: GLsizei, height: GLsizei)[src]

pub fn get_framebuffer_attachment_parameter_iv(
    &self,
    target: GLenum,
    attachment: GLenum,
    pname: GLenum
) -> GLint
[src]

pub fn get_renderbuffer_parameter_iv(
    &self,
    target: GLenum,
    pname: GLenum
) -> GLint
[src]

pub fn delete_renderbuffers(&self, buffers: &[GLuint])[src]

pub fn delete_textures(&self, textures: &[GLuint])[src]

pub fn delete_framebuffers(&self, framebuffers: &[GLuint])[src]

pub fn bind_renderbuffer(&self, target: GLenum, renderbuffer: GLuint)[src]

pub fn is_renderbuffer(&self, renderbuffer: GLuint) -> bool[src]

pub fn bind_framebuffer(&self, target: GLenum, framebuffer: GLuint)[src]

pub fn is_framebuffer(&self, framebuffer: GLuint) -> bool[src]

pub fn bind_texture(&self, target: GLenum, texture: GLuint)[src]

pub fn is_texture(&self, texture: GLuint) -> bool[src]

pub fn is_shader(&self, shader: GLuint) -> bool[src]

pub unsafe fn buffer_data(
    &self,
    target: GLenum,
    size: GLsizeiptr,
    data: *const GLvoid,
    usage: GLenum
)
[src]

pub unsafe fn buffer_sub_data(
    &self,
    target: GLenum,
    offset: isize,
    size: GLsizeiptr,
    data: *const GLvoid
)
[src]

pub fn draw_buffers(&self, bufs: &[GLenum])[src]

pub fn draw_arrays(&self, mode: GLenum, first: GLint, count: GLsizei)[src]

pub fn draw_arrays_instanced(
    &self,
    mode: GLenum,
    first: GLint,
    count: GLsizei,
    primcount: GLsizei
)
[src]

pub fn draw_elements(
    &self,
    mode: GLenum,
    count: GLsizei,
    element_type: GLenum,
    indices_offset: GLuint
)
[src]

pub fn draw_elements_instanced(
    &self,
    mode: GLenum,
    count: GLsizei,
    element_type: GLenum,
    indices_offset: GLuint,
    primcount: GLsizei
)
[src]

pub fn framebuffer_renderbuffer(
    &self,
    target: GLenum,
    attachment: GLenum,
    renderbuffertarget: GLenum,
    renderbuffer: GLuint
)
[src]

pub fn framebuffer_texture_2d(
    &self,
    target: GLenum,
    attachment: GLenum,
    textarget: GLenum,
    texture: GLuint,
    level: GLint
)
[src]

pub fn renderbuffer_storage(
    &self,
    target: GLenum,
    internalformat: GLenum,
    width: GLsizei,
    height: GLsizei
)
[src]

pub fn check_framebuffer_status(&self, target: GLenum) -> GLenum[src]

pub fn get_error(&self) -> GLenum[src]

pub fn tex_parameter_i(&self, target: GLenum, pname: GLenum, param: GLint)[src]

pub fn tex_parameter_f(&self, target: GLenum, pname: GLenum, param: GLfloat)[src]

pub fn get_tex_parameter_iv(&self, target: GLenum, pname: GLenum) -> GLint[src]

pub fn get_tex_parameter_fv(&self, target: GLenum, pname: GLenum) -> GLfloat[src]

pub fn get_active_attrib(
    &self,
    program: GLuint,
    index: GLuint
) -> (i32, u32, String)
[src]

pub fn get_active_uniform(
    &self,
    program: GLuint,
    index: GLuint
) -> (i32, u32, String)
[src]

pub fn get_attrib_location(&self, program: GLuint, name: &str) -> c_int[src]

pub fn get_uniform_location(&self, program: GLuint, name: &str) -> c_int[src]

pub fn get_program_info_log(&self, program: GLuint) -> String[src]

pub unsafe fn get_program_iv(
    &self,
    program: GLuint,
    pname: GLenum,
    result: &mut [GLint]
)
[src]

pub unsafe fn get_vertex_attrib_fv(
    &self,
    index: GLuint,
    pname: GLenum,
    result: &mut [GLfloat]
)
[src]

pub fn get_shader_info_log(&self, shader: GLuint) -> String[src]

pub unsafe fn get_integer_v(&self, name: GLenum, result: &mut [GLint])[src]

pub unsafe fn get_boolean_v(&self, name: GLenum, result: &mut [GLboolean])[src]

pub unsafe fn get_float_v(&self, name: GLenum, result: &mut [GLfloat])[src]

pub fn compile_shader(&self, shader: GLuint)[src]

pub fn pixel_store_i(&self, name: GLenum, param: GLint)[src]

pub fn read_pixels_into_buffer(
    &self,
    x: GLint,
    y: GLint,
    width: GLsizei,
    height: GLsizei,
    format: GLenum,
    pixel_type: GLenum,
    buffer: &mut [u8]
)
[src]

pub fn read_pixels(
    &self,
    x: GLint,
    y: GLint,
    width: GLsizei,
    height: GLsizei,
    format: GLenum,
    pixel_type: GLenum
) -> Vec<u8>
[src]

pub fn fence_sync(&self, condition: GLenum, flags: GLbitfield) -> GLsync[src]

pub fn client_wait_sync(
    &self,
    sync: GLsync,
    flags: GLbitfield,
    timeout: GLuint64
)
[src]

pub fn wait_sync(&self, sync: GLsync, flags: GLbitfield, timeout: GLuint64)[src]

pub fn delete_sync(&self, sync: GLsync)[src]

pub fn uniform_1f(&self, location: GLint, v0: GLfloat)[src]

pub fn uniform_1fv(&self, location: GLint, values: &[f32])[src]

pub fn uniform_1i(&self, location: GLint, v0: GLint)[src]

pub fn uniform_1iv(&self, location: GLint, values: &[i32])[src]

pub fn uniform_1ui(&self, location: GLint, v0: GLuint)[src]

pub fn uniform_2f(&self, location: GLint, v0: GLfloat, v1: GLfloat)[src]

pub fn uniform_2fv(&self, location: GLint, values: &[f32])[src]

pub fn uniform_2i(&self, location: GLint, v0: GLint, v1: GLint)[src]

pub fn uniform_2iv(&self, location: GLint, values: &[i32])[src]

pub fn uniform_2ui(&self, location: GLint, v0: GLuint, v1: GLuint)[src]

pub fn uniform_3f(&self, location: GLint, v0: GLfloat, v1: GLfloat, v2: GLfloat)[src]

pub fn uniform_3fv(&self, location: GLint, values: &[f32])[src]

pub fn uniform_3i(&self, location: GLint, v0: GLint, v1: GLint, v2: GLint)[src]

pub fn uniform_3iv(&self, location: GLint, values: &[i32])[src]

pub fn uniform_3ui(&self, location: GLint, v0: GLuint, v1: GLuint, v2: GLuint)[src]

pub fn uniform_4f(
    &self,
    location: GLint,
    x: GLfloat,
    y: GLfloat,
    z: GLfloat,
    w: GLfloat
)
[src]

pub fn uniform_4i(
    &self,
    location: GLint,
    x: GLint,
    y: GLint,
    z: GLint,
    w: GLint
)
[src]

pub fn uniform_4iv(&self, location: GLint, values: &[i32])[src]

pub fn uniform_4ui(
    &self,
    location: GLint,
    x: GLuint,
    y: GLuint,
    z: GLuint,
    w: GLuint
)
[src]

pub fn uniform_4fv(&self, location: GLint, values: &[f32])[src]

pub fn uniform_matrix_2fv(
    &self,
    location: GLint,
    transpose: bool,
    values: &[f32]
)
[src]

pub fn uniform_matrix_3fv(
    &self,
    location: GLint,
    transpose: bool,
    values: &[f32]
)
[src]

pub fn uniform_matrix_4fv(
    &self,
    location: GLint,
    transpose: bool,
    values: &[f32]
)
[src]

pub fn use_program(&self, program: GLuint)[src]

pub fn blit_framebuffer(
    &self,
    src_x0: GLint,
    src_y0: GLint,
    src_x1: GLint,
    src_y1: GLint,
    dst_x0: GLint,
    dst_y0: GLint,
    dst_x1: GLint,
    dst_y1: GLint,
    mask: GLbitfield,
    filter: GLenum
)
[src]

Auto Trait Implementations

impl Unpin for Gl

impl !Sync for Gl

impl Send for Gl

impl UnwindSafe for Gl

impl RefUnwindSafe for Gl

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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