Struct mod3d_base::example_client::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 copy 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

§

type Buffer = Buffer

The renderer’s type that reflects a BufferData
§

type Accessor = Buffer

The renderer’s type that reflects a BufferAccessor
§

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
§

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.
§

type Vertices = Id

The renderer’s type that reflects a BufferAccessor of indices and the associated BufferAccessors of attributes supported by a particular pipeline within the renderer
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_view_client( &mut self, client: &mut Self::Accessor, buffer_view: &BufferAccessor<'_, Self>, _attr: VertexAttr, )

Initialize a buffer view client
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§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

§

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§

default 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>,

§

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>,

§

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.