[][src]Trait dali::TextureRenderer

pub trait TextureRenderer {
    fn compile(&self) -> Program<(), (), TextureRendererInterface>;
fn texture_size(&self) -> [u32; 2];
fn mipmaps(&self) -> usize; fn tesselate<S: Surface>(&self, surface: &mut S) -> Result<Tess, TessError> { ... } }

Implements the functionality requires to fully render a mipmapped texture, that can be used as a stipple pattern Most commonly used with FragmentShaderRenderer An example shader is shown in gen-fs.glsl

Required methods

fn compile(&self) -> Program<(), (), TextureRendererInterface>

fn texture_size(&self) -> [u32; 2]

fn mipmaps(&self) -> usize

Loading content...

Provided methods

fn tesselate<S: Surface>(&self, surface: &mut S) -> Result<Tess, TessError>

Loading content...

Implementors

impl TextureRenderer for FragmentShaderRenderer[src]

Loading content...