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 Renderable for Id
impl Renderable for Id
Source§type Buffer = Buffer
type Buffer = Buffer
The renderer’s type that reflects a BufferData
Source§type DataAccessor = Buffer
type DataAccessor = Buffer
The renderer’s type that reflects a BufferDataAccessor
Source§type IndexAccessor = Buffer
type IndexAccessor = Buffer
The renderer’s type that reflects a BufferIndexAccessor
Source§type Descriptor = Buffer
type Descriptor = Buffer
The renderer’s type that reflects a BufferDescriptor
Source§type Texture = Id
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
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
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>,
)
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>,
)
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>,
)
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,
)
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
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
fn create_texture_client( &mut self, _vertices: &Texture<'_, Self>, ) -> Self::Texture
Create a client
impl MaterialClient for Id
impl TextureClient for Id
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more