Trait rin_gl::Render2d [−][src]
pub trait Render2d { type Material: Material; fn default_material(&self) -> Self::Material; fn render_with_material<R: RenderSurface, M: Material>(
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
); fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
); fn render<R: RenderSurface>(&self, renderer: &Renderer<'_, R>, pos: &Pnt2) { ... } fn render_size<R: RenderSurface>(
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2
) { ... } }
Associated Types
Loading content...Required methods
fn default_material(&self) -> Self::Material
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
Provided methods
fn render<R: RenderSurface>(&self, renderer: &Renderer<'_, R>, pos: &Pnt2)
[src]
fn render_size<R: RenderSurface>(
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2
)
[src]
&self,
renderer: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2
)
Implementors
impl<'a> Render2d for &'a CubeMap
[src]
impl<'a> Render2d for &'a CubeMap
[src]type Material = Material<'a>
fn default_material(&self) -> Material<'a>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
impl<'a> Render2d for &'a Fbo
[src]
impl<'a> Render2d for &'a Fbo
[src]type Material = BasicMaterial<&'a Texture>
fn default_material<'b, 'c>(&'b self) -> BasicMaterial<&'a Texture>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
impl<'a> Render2d for &'a SimpleFbo
[src]
impl<'a> Render2d for &'a SimpleFbo
[src]type Material = BasicMaterial<&'a Texture>
fn default_material<'b, 'c>(&'b self) -> BasicMaterial<&'a Texture>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
impl<'a> Render2d for &'a Texture
[src]
impl<'a> Render2d for &'a Texture
[src]type Material = BasicMaterial<&'a Texture>
fn default_material<'b, 'c>(&'b self) -> BasicMaterial<&'a Texture>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
impl<'a> Render2d for Face<'a>
[src]
impl<'a> Render2d for Face<'a>
[src]type Material = Material<'a>
fn default_material(&self) -> Material<'a>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
impl<'a> Render2d for Level<'a>
[src]
impl<'a> Render2d for Level<'a>
[src]type Material = Material<'a>
fn default_material(&self) -> Material<'a>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
impl<'a> Render2d for TextureSampler<'a>
[src]
impl<'a> Render2d for TextureSampler<'a>
[src]type Material = BasicMaterial<TextureSampler<'a>>
fn default_material<'b, 'c>(&'b self) -> BasicMaterial<TextureSampler<'a>>
[src]
fn render_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
material: &M
)
fn render_size_with_material<R: RenderSurface, M: Material>(
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)
[src]
&self,
gl: &Renderer<'_, R>,
pos: &Pnt2,
size: &Vec2,
material: &M
)