[][src]Struct ruckus::Renderer

pub struct Renderer {
    pub camera: FlyCamera,
    // some fields omitted
}

Fields

camera: FlyCamera

Implementations

impl Renderer[src]

pub const DEFAULT_FOV: f32[src]

pub const U_PROJECTION: &'static str[src]

pub const U_VIEW: &'static str[src]

pub const U_MODEL: &'static str[src]

pub fn new(width: u32, height: u32) -> Self[src]

pub fn set_viewport(&mut self, rect: &Rectf)[src]

pub fn set_projection(&mut self, width: f32, height: f32, fov_deg: f32)[src]

pub fn begin_draw_texture(rt: &RenderTexture)[src]

pub fn end_draw_texture()[src]

pub fn draw<T>(&self, renderable: &T) where
    T: Renderable
[src]

pub fn draw_mesh(&self, mesh: &Mesh)[src]

pub fn draw_quad<'b, T>(&self, q: &Quad, texture: T) where
    T: Into<Option<&'b Texture>>, 
[src]

pub fn draw_buffer<'b, T>(
    &self,
    buffer: &VertexBuffer,
    first_vertex: u32,
    texture: T
) where
    T: Into<Option<&'b Texture>>, 
[src]

pub fn draw_indexed_buffer<'b, T>(
    &self,
    buffer: &VertexBuffer,
    ebo: &ElementBuffer,
    texture: T
) where
    T: Into<Option<&'b Texture>>, 
[src]

  • Draws given buffer without any kind of vertex transformation // Draws given buffer without any kind of vertex transformation

pub fn clear_black(&self)[src]

pub fn use_default_shader<'b, T>(&self, xform: T) where
    T: Into<Option<&'b Transform>>, 
[src]

pub fn clear(&self, r: f32, g: f32, b: f32, a: f32)[src]

pub fn projection(&self) -> &Mat4[src]

pub fn view(&self) -> Mat4[src]

pub fn set_current(&self)[src]

Binds renderer's internal VAO

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.