pub struct CompatTextureGl { /* private fields */ }Expand description
Texture/uniform/blend symbols layered on top of CompatGl.
Loading this separately keeps the known-good clear/triangle path alive when
older libretro GL proc lookup fails for texture or blending entry points.
glActiveTexture is required so callers can restore texture unit 0
explicitly after uploads and draws.
Implementations§
Source§impl CompatTextureGl
impl CompatTextureGl
pub fn init(runtime: &Runtime<'_>) -> Result<Self, String>
pub fn max_texture_size(&self) -> Option<u32>
pub fn from_glsym(gl: glsym) -> Self
pub fn enable(&self, capability: GlCapability)
pub fn disable(&self, capability: GlCapability)
pub fn gen_texture(&self) -> Result<GlTexture, String>
pub fn unbind_texture(&self, target: GlTextureTarget)
pub fn bind_texture(&self, target: GlTextureTarget, texture: Option<GlTexture>)
pub fn active_texture(&self, unit: GlTextureUnit) -> Result<(), String>
pub fn tex_min_filter( &self, target: GlTextureTarget, filter: GlTextureMinFilter, )
pub fn tex_mag_filter( &self, target: GlTextureTarget, filter: GlTextureMagFilter, )
pub fn tex_wrap_s(&self, target: GlTextureTarget, wrap: GlTextureWrap)
pub fn tex_wrap_t(&self, target: GlTextureTarget, wrap: GlTextureWrap)
pub fn tex_wrap_r(&self, target: GlTextureTarget, wrap: GlTextureWrap)
pub fn pixel_store_unpack_alignment(&self, alignment: GlPixelStoreAlignment)
pub fn tex_image_2d( &self, target: GlTextureTarget, internal_format: GlTextureInternalFormat, level: GlTextureLevel, size: GlTextureSize2D, format: GlTextureFormat, data_type: GlTextureDataType, bytes: Option<&[u8]>, ) -> Result<(), String>
pub fn delete_texture(&self, texture: GlTexture)
pub fn required_uniform_location( &self, program: GlProgram, name: &str, ) -> Result<GlUniformLocation, String>
pub fn uniform_1i(&self, location: GlUniformLocation, value: i32)
pub fn uniform_4fv(&self, location: GlUniformLocation, values: &[f32; 4])
pub fn blend_func(&self, source: GlBlendFactor, destination: GlBlendFactor)
pub fn check_no_error(&self, operation: &str) -> Result<(), String>
Trait Implementations§
Source§impl Clone for CompatTextureGl
impl Clone for CompatTextureGl
Source§fn clone(&self) -> CompatTextureGl
fn clone(&self) -> CompatTextureGl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompatTextureGl
Auto Trait Implementations§
impl Freeze for CompatTextureGl
impl RefUnwindSafe for CompatTextureGl
impl Send for CompatTextureGl
impl Sync for CompatTextureGl
impl Unpin for CompatTextureGl
impl UnsafeUnpin for CompatTextureGl
impl UnwindSafe for CompatTextureGl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more