OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MaterialBase Class Referenceabstract

#include "MaterialBase.h"

Inheritance diagram for MaterialBase:
MaterialMetal MaterialPlastic MaterialPolished MaterialRough

Public Member Functions

 MaterialBase ()
 
virtual ~MaterialBase ()
 
virtual void setMaterialType (osg::ref_ptr< osg::Material > &mat, float r, float g, float b, float t)=0
 
virtual void loadTexture (osg::ref_ptr< osg::Texture2D > &texture2D)
 

Public Attributes

bool hasTexture { false }
 

Constructor & Destructor Documentation

◆ MaterialBase()

MaterialBase::MaterialBase ( )
inline

◆ ~MaterialBase()

virtual MaterialBase::~MaterialBase ( )
inlinevirtual

Member Function Documentation

◆ loadTexture()

virtual void MaterialBase::loadTexture ( osg::ref_ptr< osg::Texture2D > & texture2D)
inlinevirtual

◆ setMaterialType()

virtual void MaterialBase::setMaterialType ( osg::ref_ptr< osg::Material > & mat,
float r,
float g,
float b,
float t )
pure virtual

Member Data Documentation

◆ hasTexture

bool MaterialBase::hasTexture { false }

The documentation for this class was generated from the following file: