Trait Image

Source
pub trait Image {
    // Required methods
    fn tex_image_2d(
        &self,
        context: &WebGL2RenderingContext,
        target: TextureBindPoint,
        level: u32,
        internalformat: PixelCopyFormat,
        width: u32,
        height: u32,
        format: PixelCopyFormat,
        pixel_type: PixelType,
    ) -> Result<(), JsValue>;
    fn tex_sub_image_2d(
        &self,
        context: &WebGL2RenderingContext,
        target: TextureBindPoint,
        level: u32,
        xoffset: u32,
        yoffset: u32,
        width: u32,
        height: u32,
        format: PixelCopyFormat,
        pixel_type: PixelType,
    ) -> Result<(), JsValue>;
    fn read_pixels(
        &mut self,
        context: &WebGL2RenderingContext,
        x: u32,
        y: u32,
        width: u32,
        height: u32,
        format: PixelReadFormat,
        pixel_type: PixelType,
    ) -> Result<(), JsValue>;
}

Required Methods§

Source

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Implementations on Foreign Types§

Source§

impl Image for Vec<f32>

Source§

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

impl Image for Vec<i8>

Source§

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

impl Image for Vec<i16>

Source§

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

impl Image for Vec<i32>

Source§

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

impl Image for Vec<u8>

Source§

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

impl Image for Vec<u16>

Source§

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

impl Image for Vec<u32>

Source§

fn tex_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, internalformat: PixelCopyFormat, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn tex_sub_image_2d( &self, context: &WebGL2RenderingContext, target: TextureBindPoint, level: u32, xoffset: u32, yoffset: u32, width: u32, height: u32, format: PixelCopyFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Source§

fn read_pixels( &mut self, context: &WebGL2RenderingContext, x: u32, y: u32, width: u32, height: u32, format: PixelReadFormat, pixel_type: PixelType, ) -> Result<(), JsValue>

Implementors§