Struct Renderable

Source
pub struct Renderable(/* private fields */);
Expand description

The thing that is Renderable - pretty much a place-holder

This is also used as a MaterialClient, TextureClient and VerticesClient

Trait Implementations§

Source§

impl Clone for Id

Source§

fn clone(&self) -> Id

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Id

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Id

Source§

fn default() -> Id

Returns the “default value” for a type. Read more
Source§

impl Display for Id

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Renderable for Id

Source§

type Buffer = Buffer

The renderer’s type that reflects a BufferData
Source§

type DataAccessor = Buffer

The renderer’s type that reflects a BufferDataAccessor
Source§

type IndexAccessor = Buffer

The renderer’s type that reflects a BufferIndexAccessor
Source§

type Descriptor = Buffer

The renderer’s type that reflects a BufferDescriptor
Source§

type Texture = Id

The renderer’s type that represents a texture; this is supplied to material creation, and hence is less a product of the renderer and more an input to the 3D model library
Source§

type Material = Id

The renderer’s type that reflects a Material; this is expected to be an extraction of the aspects of a material that the renderer pipelines can apply.
Source§

type Vertices = Id

The renderer’s type that reflects a [BufferAccessor] of indices and the associated [BufferAccessor]s of attributes supported by a particular pipeline within the renderer
Source§

fn init_index_accessor_client( &mut self, _client: &mut Self::DataAccessor, _buffer_view: &BufferIndexAccessor<'_, Self>, )

Initialize the client of an index accessor of a buffer data
Source§

fn init_buffer_data_client( &mut self, _buffer: &mut Buffer, _data: &BufferData<'_, Self>, )

Initialize a buffer data client - it will have been created using default()
Source§

fn init_buffer_desc_client( &mut self, client: &mut Self::Descriptor, buffer_desc: &BufferDescriptor<'_, Self>, )

Initialize a buffer descriptor client - it will have been created using default()
Source§

fn init_buffer_view_client( &mut self, client: &mut Buffer, buffer_view: &BufferDataAccessor<'_, Self>, _attr: VertexAttr, )

Initialize the client of a data accessor of a buffer data
Source§

fn create_vertices_client( &mut self, _vertices: &Vertices<'_, Self>, ) -> Self::Vertices

Create a client
Source§

fn create_texture_client( &mut self, _vertices: &Texture<'_, Self>, ) -> Self::Texture

Create a client
Source§

fn create_material_client<M>( &mut self, _object: &Object<'_, M, Self>, _material: &M, ) -> Self::Material
where M: Material,

Create a client
Source§

fn init_material_client<M: Material>( &mut self, _client: &mut Self::Material, _material: &M, )

Create a client for a reason - reason 0 is reserved Can we lose this?
Source§

impl MaterialClient for Id

Source§

impl TextureClient for Id

Source§

impl VerticesClient for Id

Auto Trait Implementations§

§

impl Freeze for Id

§

impl RefUnwindSafe for Id

§

impl Send for Id

§

impl Sync for Id

§

impl Unpin for Id

§

impl UnwindSafe for Id

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.