[][src]Trait cat_engine::graphics::SimpleObject

pub trait SimpleObject<'a> {
    type Indices: Into<IndicesSource<'a>>;
    fn colour(&self) -> Colour;
fn point_buffer(&self) -> Vec<Vertex2D>;
fn indices(&self) -> Self::Indices; fn vertex_buffer(&self) -> Vec<Vertex2D> { ... } }

Типаж для создания собственных простых одноцветных объектов.

Trait for creating your own plain objects.

Associated Types

Loading content...

Required methods

fn colour(&self) -> Colour

Цвет объекта.

An object's colour.

fn point_buffer(&self) -> Vec<Vertex2D>

Точки объекта в оконных координатах (без приведения к формату OpenGL).

Object's points in window axes (without converting to OpenGL format).

fn indices(&self) -> Self::Indices

Индексы для построения объекта.

Indices to build an object.

Loading content...

Provided methods

fn vertex_buffer(&self) -> Vec<Vertex2D>

Loading content...

Implementors

impl<'a> SimpleObject<'a> for Circle[src]

impl<'a> SimpleObject<'a> for Line[src]

impl<'a> SimpleObject<'a> for Quadrilateral[src]

impl<'a> SimpleObject<'a> for Rectangle[src]

impl<'a> SimpleObject<'a> for RectangleBorder[src]

Loading content...