Struct rin::blender::Blender[][src]

pub struct Blender<'a> { /* fields omitted */ }

Implementations

impl<'a> Blender<'a>[src]

pub fn alpha_type(&mut self, alpha_type: AlphaType) -> &mut Blender<'a>[src]

Overrides the default BlendMode in all the materials in the loaded file

pub fn blend_hashed_as_alpha_to_coverage(&mut self) -> &mut Blender<'a>[src]

For materials with blender BlendMode Hashed use AlphaType AlphaToCoverage instead of the default ScreenDoor

pub fn shader_precision(
    &mut self,
    shader_precision: ShaderPrecision
) -> &mut Blender<'a>
[src]

Set the shader precision to use for the materials

pub fn transformation<T>(&mut self, trafo: T) -> &mut Blender<'a> where
    T: Into<Node>, 
[src]

Initial Transformation for the loaded scene

pub fn dynamic_transformation<T>(&mut self, trafo: T) -> &mut Blender<'a> where
    T: Into<Node>, 
[src]

Set the transformations to dynamic

pub fn invisible(&mut self) -> &mut Blender<'a>[src]

Initially invisible

pub fn parent(&mut self, parent: Entity) -> &mut Blender<'a>[src]

Transformation as child of the passed entity

pub fn post_fragment_materials(&mut self) -> &mut Blender<'a>[src]

Load materials as PostFragment materials that can be later modified with a post fragment

pub fn entity(&mut self, entity: Entity) -> &mut Blender<'a>[src]

Set an entity to add the scene to instead of creating a new one

pub fn no_instancing(&mut self) -> &mut Blender<'a>[src]

Use no instancing, every model will be created as a new one instead of instances if they repeated

pub fn scene_rigid_body(&mut self, shape: RigidBodyShape) -> &mut Blender<'a>[src]

Treats the whole loaded scene as a rigid body by adding a rin::physics::Shape and rin::physics::Offset to the top level Empty that contains the SceneIndex

pub fn from_scene_data<P>(
    &mut self,
    scene: &SceneData,
    path: P,
    name: &str
) -> Result<(Entity, SceneIndex), Error> where
    P: AsRef<Path>, 
[src]

Load a scene from an already preloaded ‘rinblender::SceneData’

pub fn load_scene<P>(
    &mut self,
    path: P,
    name: &str
) -> Result<(Entity, SceneData, SceneIndex), Error> where
    P: AsRef<Path>, 
[src]

Load scene from a file system path

pub fn character_from_scene_data<P>(
    &mut self,
    scene: &SceneData,
    path: P,
    name: &str
) -> Result<(CharacterEntity, SceneIndex), Error> where
    P: AsRef<Path>, 
[src]

Load character scene from an already preloaded rinblender::SceneData

pub fn load_character<P>(
    &mut self,
    path: P,
    name: &str
) -> Result<(CharacterEntity, SceneData, SceneIndex), Error> where
    P: AsRef<Path>, 
[src]

Load a character scene from a file system path

pub fn load_group<P>(
    &mut self,
    path: P,
    name: &str,
    groups: &[&str]
) -> Result<(Entity, SceneData, SceneIndex), Error> where
    P: AsRef<Path>, 
[src]

Load a set of groups from a file systme path instead of the full file

When loading groups all the materials in the file will be loaded anyway

Trait Implementations

impl<'a> Builder<'a> for Blender<'a>[src]

type Settings = ()

type IdType = Vertex

type Depends = Bundle

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Blender<'a>

impl<'a> !Send for Blender<'a>

impl<'a> !Sync for Blender<'a>

impl<'a> Unpin for Blender<'a>

impl<'a> !UnwindSafe for Blender<'a>

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> Downcast for T where
    T: Any
[src]

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

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

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]