Skip to main content

GlContextPtr

Struct GlContextPtr 

Source
#[repr(C)]
pub struct GlContextPtr { pub ptr: ManuallyDrop<Box<Rc<GlContextPtrInner>>>, pub renderer_type: RendererType, pub run_destructor: bool, }

Fields§

§ptr: ManuallyDrop<Box<Rc<GlContextPtrInner>>>

ManuallyDrop so the owned Box is freed ONLY when run_destructor is still set (see Drop). The codegen FFI wrappers (AzTexture etc.) embed this by value AND have their own Drop that drop_in_places the real type first; Rust’s drop glue would then drop this field a SECOND time on the same bytes. Gating the Box free on run_destructor (which the first drop clears in the shared memory) makes that second drop a safe no-op. Layout is unchanged: ManuallyDrop<Box<T>> is a single pointer, identical to the old Box<T> and to the FFI *mut c_void.

§renderer_type: RendererType

Whether to force a hardware or software renderer

§run_destructor: bool

Implementations§

Source§

impl GlContextPtr

Source

pub fn get_svg_shader(&self) -> GLuint

Source

pub fn is_gl_usable(&self) -> bool

Whether this hardware GL context proved usable at construction (the SVG shaders compiled+linked at some GLSL version). false means context creation succeeded but the driver can’t run our shaders – the caller should fall back to CPU rendering. Always false for a Software context (which never compiles these shaders); only meaningful on the GPU path.

Source

pub fn get_usable_glsl_version(&self) -> AzString

The GLSL #version the driver accepted at construction (e.g. “150” or “300 es”), discovered by the probe. Empty string if the context is unusable / software. Exposed in the API so apps can report/branch on it.

Source

pub fn get_brush_shader(&self) -> GLuint

Soft-brush shader program for the GPU painting API (0 if unusable).

Source

pub fn get_fxaa_shader(&self) -> GLuint

Source§

impl GlContextPtr

Source

pub fn new( renderer_type: RendererType, gl_context: Rc<GenericGlContext>, ) -> Self

Source

pub fn get(&self) -> &Rc<GenericGlContext>

Source§

impl GlContextPtr

Source

pub fn get_type(&self) -> GlType

Source

pub fn buffer_data_untyped( &self, target: GLenum, size: GLsizeiptr, data: GlVoidPtrConst, usage: GLenum, )

Source

pub fn buffer_sub_data_untyped( &self, target: GLenum, offset: isize, size: GLsizeiptr, data: GlVoidPtrConst, )

Source

pub fn map_buffer(&self, target: GLenum, access: GLbitfield) -> GlVoidPtrMut

Source

pub fn map_buffer_range( &self, target: GLenum, offset: GLintptr, length: GLsizeiptr, access: GLbitfield, ) -> GlVoidPtrMut

Source

pub fn unmap_buffer(&self, target: GLenum) -> GLboolean

Source

pub fn tex_buffer( &self, target: GLenum, internal_format: GLenum, buffer: GLuint, )

Source

pub fn shader_source(&self, shader: GLuint, strings: StringVec)

Source

pub fn read_buffer(&self, mode: GLenum)

Source

pub fn read_pixels_into_buffer( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, pixel_type: GLenum, dst_buffer: U8VecRefMut, )

Source

pub fn read_pixels( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, pixel_type: GLenum, ) -> U8Vec

Source

pub fn read_pixels_into_pbo( &self, x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, pixel_type: GLenum, )

Source

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

Source

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

Source

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

Source

pub fn gen_buffers(&self, n: GLsizei) -> GLuintVec

Source

pub fn gen_renderbuffers(&self, n: GLsizei) -> GLuintVec

Source

pub fn gen_framebuffers(&self, n: GLsizei) -> GLuintVec

Source

pub fn gen_textures(&self, n: GLsizei) -> GLuintVec

Source

pub fn gen_vertex_arrays(&self, n: GLsizei) -> GLuintVec

Source

pub fn gen_queries(&self, n: GLsizei) -> GLuintVec

Source

pub fn begin_query(&self, target: GLenum, id: GLuint)

Source

pub fn end_query(&self, target: GLenum)

Source

pub fn query_counter(&self, id: GLuint, target: GLenum)

Source

pub fn get_query_object_iv(&self, id: GLuint, pname: GLenum) -> i32

Source

pub fn get_query_object_uiv(&self, id: GLuint, pname: GLenum) -> u32

Source

pub fn get_query_object_i64v(&self, id: GLuint, pname: GLenum) -> i64

Source

pub fn get_query_object_ui64v(&self, id: GLuint, pname: GLenum) -> u64

Source

pub fn delete_queries(&self, queries: GLuintVecRef)

Source

pub fn delete_vertex_arrays(&self, vertex_arrays: GLuintVecRef)

Source

pub fn delete_buffers(&self, buffers: GLuintVecRef)

Source

pub fn delete_renderbuffers(&self, renderbuffers: GLuintVecRef)

Source

pub fn delete_framebuffers(&self, framebuffers: GLuintVecRef)

Source

pub fn delete_textures(&self, textures: GLuintVecRef)

Source

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

Source

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

Source

pub fn depth_func(&self, func: GLenum)

Source

pub fn active_texture(&self, texture: GLenum)

Source

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

Source

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

Source

pub fn get_uniform_iv( &self, program: GLuint, location: GLint, result: GLintVecRefMut, )

Source

pub fn get_uniform_fv( &self, program: GLuint, location: GLint, result: GLfloatVecRefMut, )

Source

pub fn get_uniform_block_index(&self, program: GLuint, name: &str) -> GLuint

Source

pub fn get_uniform_indices( &self, program: GLuint, names: RefstrVecRef, ) -> GLuintVec

Source

pub fn bind_buffer_base(&self, target: GLenum, index: GLuint, buffer: GLuint)

Source

pub fn bind_buffer_range( &self, target: GLenum, index: GLuint, buffer: GLuint, offset: GLintptr, size: GLsizeiptr, )

Source

pub fn uniform_block_binding( &self, program: GLuint, uniform_block_index: GLuint, uniform_block_binding: GLuint, )

Source

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

Source

pub fn bind_vertex_array(&self, vao: GLuint)

Source

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

Source

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

Source

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

Source

pub fn draw_buffers(&self, bufs: GLenumVecRef)

Source

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: OptionU8VecRef, )

Source

pub fn compressed_tex_image_2d( &self, target: GLenum, level: GLint, internal_format: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: U8VecRef, )

Source

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

Source

pub fn tex_image_3d( &self, target: GLenum, level: GLint, internal_format: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, ty: GLenum, opt_data: OptionU8VecRef, )

Source

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

Source

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

Source

pub fn copy_tex_sub_image_3d( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei, )

Source

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

Source

pub fn tex_sub_image_2d_pbo( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, ty: GLenum, offset: usize, )

Source

pub fn tex_sub_image_3d( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, ty: GLenum, data: U8VecRef, )

Source

pub fn tex_sub_image_3d_pbo( &self, target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, ty: GLenum, offset: usize, )

Source

pub fn tex_storage_2d( &self, target: GLenum, levels: GLint, internal_format: GLenum, width: GLsizei, height: GLsizei, )

Source

pub fn tex_storage_3d( &self, target: GLenum, levels: GLint, internal_format: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, )

Source

pub fn get_tex_image_into_buffer( &self, target: GLenum, level: GLint, format: GLenum, ty: GLenum, output: U8VecRefMut, )

Source

pub fn copy_image_sub_data( &self, src_name: GLuint, src_target: GLenum, src_level: GLint, src_x: GLint, src_y: GLint, src_z: GLint, dst_name: GLuint, dst_target: GLenum, dst_level: GLint, dst_x: GLint, dst_y: GLint, dst_z: GLint, src_width: GLsizei, src_height: GLsizei, src_depth: GLsizei, )

Source

pub fn invalidate_framebuffer(&self, target: GLenum, attachments: GLenumVecRef)

Source

pub fn invalidate_sub_framebuffer( &self, target: GLenum, attachments: GLenumVecRef, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, )

Source

pub fn get_integer_v(&self, name: GLenum, result: GLintVecRefMut)

Source

pub fn get_integer_64v(&self, name: GLenum, result: GLint64VecRefMut)

Source

pub fn get_integer_iv( &self, name: GLenum, index: GLuint, result: GLintVecRefMut, )

Source

pub fn get_integer_64iv( &self, name: GLenum, index: GLuint, result: GLint64VecRefMut, )

Source

pub fn get_boolean_v(&self, name: GLenum, result: GLbooleanVecRefMut)

Source

pub fn get_float_v(&self, name: GLenum, result: GLfloatVecRefMut)

Source

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

Source

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

Source

pub fn get_tex_parameter_iv(&self, target: GLenum, name: GLenum) -> GLint

Source

pub fn get_tex_parameter_fv(&self, target: GLenum, name: GLenum) -> GLfloat

Source

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

Source

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

Source

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

Source

pub fn framebuffer_texture_layer( &self, target: GLenum, attachment: GLenum, texture: GLuint, level: GLint, layer: GLint, )

Source

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, )

Source

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

Source

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

Source

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

Source

pub fn vertex_attrib_i_pointer( &self, index: GLuint, size: GLint, type_: GLenum, stride: GLsizei, offset: GLuint, )

Source

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

Source

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

Source

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

Source

pub fn line_width(&self, width: GLfloat)

Source

pub fn use_program(&self, program: GLuint)

Source

pub fn validate_program(&self, program: GLuint)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn blend_equation(&self, mode: GLenum)

Source

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

Source

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

Source

pub fn cull_face(&self, mode: GLenum)

Source

pub fn front_face(&self, mode: GLenum)

Source

pub fn enable(&self, cap: GLenum)

Source

pub fn disable(&self, cap: GLenum)

Source

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

Source

pub fn is_enabled(&self, cap: GLenum) -> GLboolean

Source

pub fn is_shader(&self, shader: GLuint) -> GLboolean

Source

pub fn is_texture(&self, texture: GLenum) -> GLboolean

Source

pub fn is_framebuffer(&self, framebuffer: GLenum) -> GLboolean

Source

pub fn is_renderbuffer(&self, renderbuffer: GLenum) -> GLboolean

Source

pub fn check_frame_buffer_status(&self, target: GLenum) -> GLenum

Source

pub fn enable_vertex_attrib_array(&self, index: GLuint)

Source

pub fn disable_vertex_attrib_array(&self, index: GLuint)

Source

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

Source

pub fn uniform_1fv(&self, location: GLint, values: F32VecRef)

Source

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

Source

pub fn uniform_1iv(&self, location: GLint, values: I32VecRef)

Source

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

Source

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

Source

pub fn uniform_2fv(&self, location: GLint, values: F32VecRef)

Source

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

Source

pub fn uniform_2iv(&self, location: GLint, values: I32VecRef)

Source

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

Source

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

Source

pub fn uniform_3fv(&self, location: GLint, values: F32VecRef)

Source

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

Source

pub fn uniform_3iv(&self, location: GLint, values: I32VecRef)

Source

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

Source

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

Source

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

Source

pub fn uniform_4iv(&self, location: GLint, values: I32VecRef)

Source

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

Source

pub fn uniform_4fv(&self, location: GLint, values: F32VecRef)

Source

pub fn uniform_matrix_2fv( &self, location: GLint, transpose: bool, value: F32VecRef, )

Source

pub fn uniform_matrix_3fv( &self, location: GLint, transpose: bool, value: F32VecRef, )

Source

pub fn uniform_matrix_4fv( &self, location: GLint, transpose: bool, value: F32VecRef, )

Source

pub fn depth_mask(&self, flag: bool)

Source

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

Source

pub fn get_active_attrib( &self, program: GLuint, index: GLuint, ) -> GetActiveAttribReturn

Source

pub fn get_active_uniform( &self, program: GLuint, index: GLuint, ) -> GetActiveUniformReturn

Source

pub fn get_active_uniforms_iv( &self, program: GLuint, indices: GLuintVec, pname: GLenum, ) -> GLintVec

Source

pub fn get_active_uniform_block_i( &self, program: GLuint, index: GLuint, pname: GLenum, ) -> GLint

Source

pub fn get_active_uniform_block_iv( &self, program: GLuint, index: GLuint, pname: GLenum, ) -> GLintVec

Source

pub fn get_active_uniform_block_name( &self, program: GLuint, index: GLuint, ) -> AzString

Source

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

Source

pub fn get_frag_data_location(&self, program: GLuint, name: &str) -> c_int

Source

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

Source

pub fn get_program_info_log(&self, program: GLuint) -> AzString

Source

pub fn get_program_iv( &self, program: GLuint, pname: GLenum, result: GLintVecRefMut, )

Source

pub fn get_program_binary(&self, program: GLuint) -> GetProgramBinaryReturn

Source

pub fn program_binary(&self, program: GLuint, format: GLenum, binary: U8VecRef)

Source

pub fn program_parameter_i(&self, program: GLuint, pname: GLenum, value: GLint)

Source

pub fn get_vertex_attrib_iv( &self, index: GLuint, pname: GLenum, result: GLintVecRefMut, )

Source

pub fn get_vertex_attrib_fv( &self, index: GLuint, pname: GLenum, result: GLfloatVecRefMut, )

Source

pub fn get_vertex_attrib_pointer_v( &self, index: GLuint, pname: GLenum, ) -> GLsizeiptr

Source

pub fn get_buffer_parameter_iv(&self, target: GLuint, pname: GLenum) -> GLint

Source

pub fn get_shader_info_log(&self, shader: GLuint) -> AzString

Source

pub fn get_string(&self, which: GLenum) -> AzString

Source

pub fn get_string_i(&self, which: GLenum, index: GLuint) -> AzString

Source

pub fn get_shader_iv( &self, shader: GLuint, pname: GLenum, result: GLintVecRefMut, )

Source

pub fn get_shader_precision_format( &self, shader_type: GLuint, precision_type: GLuint, ) -> GlShaderPrecisionFormatReturn

Source

pub fn compile_shader(&self, shader: GLuint)

Source

pub fn create_program(&self) -> GLuint

Source

pub fn delete_program(&self, program: GLuint)

Source

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

Source

pub fn delete_shader(&self, shader: GLuint)

Source

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

Source

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

Source

pub fn clear(&self, buffer_mask: GLbitfield)

Source

pub fn clear_depth(&self, depth: f64)

Source

pub fn clear_stencil(&self, s: GLint)

Source

pub fn flush(&self)

Source

pub fn finish(&self)

Source

pub fn get_error(&self) -> GLenum

Source

pub fn stencil_mask(&self, mask: GLuint)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

pub fn egl_image_target_texture2d_oes( &self, target: GLenum, image: GlVoidPtrConst, )

Source

pub fn generate_mipmap(&self, target: GLenum)

Source

pub fn insert_event_marker_ext(&self, message: &str)

Source

pub fn push_group_marker_ext(&self, message: &str)

Source

pub fn pop_group_marker_ext(&self)

Source

pub fn debug_message_insert_khr( &self, source: GLenum, type_: GLenum, id: GLuint, severity: GLenum, message: &str, )

Source

pub fn push_debug_group_khr(&self, source: GLenum, id: GLuint, message: &str)

Source

pub fn pop_debug_group_khr(&self)

Source

pub fn fence_sync(&self, condition: GLenum, flags: GLbitfield) -> GLsyncPtr

Source

pub fn client_wait_sync( &self, sync: GLsyncPtr, flags: GLbitfield, timeout: GLuint64, ) -> u32

Source

pub fn wait_sync(&self, sync: GLsyncPtr, flags: GLbitfield, timeout: GLuint64)

Source

pub fn delete_sync(&self, sync: GLsyncPtr)

Source

pub fn texture_range_apple(&self, target: GLenum, data: U8VecRef)

Source

pub fn gen_fences_apple(&self, n: GLsizei) -> GLuintVec

Source

pub fn delete_fences_apple(&self, fences: GLuintVecRef)

Source

pub fn set_fence_apple(&self, fence: GLuint)

Source

pub fn finish_fence_apple(&self, fence: GLuint)

Source

pub fn test_fence_apple(&self, fence: GLuint)

Source

pub fn test_object_apple(&self, object: GLenum, name: GLuint) -> GLboolean

Source

pub fn finish_object_apple(&self, object: GLenum, name: GLuint)

Source

pub fn get_frag_data_index(&self, program: GLuint, name: &str) -> GLint

Source

pub fn blend_barrier_khr(&self)

Source

pub fn bind_frag_data_location_indexed( &self, program: GLuint, color_number: GLuint, index: GLuint, name: &str, )

Source

pub fn get_debug_messages(&self) -> DebugMessageVec

Source

pub fn provoking_vertex_angle(&self, mode: GLenum)

Source

pub fn gen_vertex_arrays_apple(&self, n: GLsizei) -> GLuintVec

Source

pub fn bind_vertex_array_apple(&self, vao: GLuint)

Source

pub fn delete_vertex_arrays_apple(&self, vertex_arrays: GLuintVecRef)

Source

pub fn copy_texture_chromium( &self, source_id: GLuint, source_level: GLint, dest_target: GLenum, dest_id: GLuint, dest_level: GLint, internal_format: GLint, dest_type: GLenum, unpack_flip_y: GLboolean, unpack_premultiply_alpha: GLboolean, unpack_unmultiply_alpha: GLboolean, )

Source

pub fn copy_sub_texture_chromium( &self, source_id: GLuint, source_level: GLint, dest_target: GLenum, dest_id: GLuint, dest_level: GLint, x_offset: GLint, y_offset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei, unpack_flip_y: GLboolean, unpack_premultiply_alpha: GLboolean, unpack_unmultiply_alpha: GLboolean, )

Source

pub fn egl_image_target_renderbuffer_storage_oes( &self, target: u32, image: GlVoidPtrConst, )

Source

pub fn copy_texture_3d_angle( &self, source_id: GLuint, source_level: GLint, dest_target: GLenum, dest_id: GLuint, dest_level: GLint, internal_format: GLint, dest_type: GLenum, unpack_flip_y: GLboolean, unpack_premultiply_alpha: GLboolean, unpack_unmultiply_alpha: GLboolean, )

Source

pub fn copy_sub_texture_3d_angle( &self, source_id: GLuint, source_level: GLint, dest_target: GLenum, dest_id: GLuint, dest_level: GLint, x_offset: GLint, y_offset: GLint, z_offset: GLint, x: GLint, y: GLint, z: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, unpack_flip_y: GLboolean, unpack_premultiply_alpha: GLboolean, unpack_unmultiply_alpha: GLboolean, )

Source

pub fn buffer_storage( &self, target: GLenum, size: GLsizeiptr, data: GlVoidPtrConst, flags: GLbitfield, )

Source

pub fn flush_mapped_buffer_range( &self, target: GLenum, offset: GLintptr, length: GLsizeiptr, )

Trait Implementations§

Source§

impl Clone for GlContextPtr

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GlContextPtr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for GlContextPtr

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Eq for GlContextPtr

Source§

impl Ord for GlContextPtr

Source§

fn cmp(&self, rhs: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for GlContextPtr

Source§

fn eq(&self, rhs: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for GlContextPtr

Source§

fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.