PeriDyno 0.8.2
Public Member Functions | Static Public Attributes | List of all members
ofbx::Material Struct Referenceabstract

#include <ofbx.h>

Inheritance diagram for ofbx::Material:
Inheritance graph
[legend]
Collaboration diagram for ofbx::Material:
Collaboration graph
[legend]

Public Member Functions

 Material (const Scene &_scene, const IElement &_element)
 
virtual Color getDiffuseColor () const =0
 
virtual Color getSpecularColor () const =0
 
virtual Color getReflectionColor () const =0
 
virtual Color getAmbientColor () const =0
 
virtual Color getEmissiveColor () const =0
 
virtual double getDiffuseFactor () const =0
 
virtual double getSpecularFactor () const =0
 
virtual double getReflectionFactor () const =0
 
virtual double getShininess () const =0
 
virtual double getShininessExponent () const =0
 
virtual double getAmbientFactor () const =0
 
virtual double getBumpFactor () const =0
 
virtual double getEmissiveFactor () const =0
 
virtual const TexturegetTexture (Texture::TextureType type) const =0
 
- Public Member Functions inherited from ofbx::Object
 Object (const Scene &_scene, const IElement &_element)
 
virtual ~Object ()
 
virtual Type getType () const =0
 
const IScenegetScene () const
 
ObjectresolveObjectLink (int idx) const
 
ObjectresolveObjectLink (Type type, const char *property, int idx) const
 
ObjectresolveObjectLinkReverse (Type type) const
 
ObjectgetParent () const
 
RotationOrder getRotationOrder () const
 
Vec3 getRotationOffset () const
 
Vec3 getRotationPivot () const
 
Vec3 getPostRotation () const
 
Vec3 getScalingOffset () const
 
Vec3 getScalingPivot () const
 
Vec3 getPreRotation () const
 
Vec3 getLocalTranslation () const
 
Vec3 getLocalRotation () const
 
Vec3 getLocalScaling () const
 
Matrix getGlobalTransform () const
 
Matrix getLocalTransform () const
 
Matrix evalLocal (const Vec3 &translation, const Vec3 &rotation) const
 
Matrix evalLocal (const Vec3 &translation, const Vec3 &rotation, const Vec3 &scaling) const
 
bool isNode () const
 
template<typename T >
TresolveObjectLink (int idx) const
 

Static Public Attributes

static const Type s_type = Type::MATERIAL
 

Additional Inherited Members

- Public Types inherited from ofbx::Object
enum class  Type {
  ROOT , GEOMETRY , SHAPE , MATERIAL ,
  MESH , TEXTURE , LIMB_NODE , NULL_NODE ,
  NODE_ATTRIBUTE , CLUSTER , SKIN , BLEND_SHAPE ,
  BLEND_SHAPE_CHANNEL , ANIMATION_STACK , ANIMATION_LAYER , ANIMATION_CURVE ,
  ANIMATION_CURVE_NODE , POSE
}
 
- Public Attributes inherited from ofbx::Object
u64 id
 
char name [128]
 
const IElementelement
 
const Objectnode_attribute
 
- Protected Attributes inherited from ofbx::Object
bool is_node
 
const Scenescene
 

Detailed Description

Definition at line 261 of file ofbx.h.

Constructor & Destructor Documentation

◆ Material()

ofbx::Material::Material ( const Scene _scene,
const IElement _element 
)

Definition at line 1076 of file ofbx.cpp.

Member Function Documentation

◆ getAmbientColor()

virtual Color ofbx::Material::getAmbientColor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getAmbientFactor()

virtual double ofbx::Material::getAmbientFactor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getBumpFactor()

virtual double ofbx::Material::getBumpFactor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getDiffuseColor()

virtual Color ofbx::Material::getDiffuseColor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getDiffuseFactor()

virtual double ofbx::Material::getDiffuseFactor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getEmissiveColor()

virtual Color ofbx::Material::getEmissiveColor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getEmissiveFactor()

virtual double ofbx::Material::getEmissiveFactor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getReflectionColor()

virtual Color ofbx::Material::getReflectionColor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getReflectionFactor()

virtual double ofbx::Material::getReflectionFactor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getShininess()

virtual double ofbx::Material::getShininess ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getShininessExponent()

virtual double ofbx::Material::getShininessExponent ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getSpecularColor()

virtual Color ofbx::Material::getSpecularColor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getSpecularFactor()

virtual double ofbx::Material::getSpecularFactor ( ) const
pure virtual

Implemented in ofbx::MaterialImpl.

◆ getTexture()

virtual const Texture * ofbx::Material::getTexture ( Texture::TextureType  type) const
pure virtual

Implemented in ofbx::MaterialImpl.

Member Data Documentation

◆ s_type

const Type ofbx::Material::s_type = Type::MATERIAL
static

Definition at line 263 of file ofbx.h.


The documentation for this struct was generated from the following files: