OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MaterialBase.h
Go to the documentation of this file.
1#pragma once
2#include <osg/Material>
3#include <osgDB/ReadFile>
4#include <osg/Texture2D>
5
7{
8public:
10 bool hasTexture{ false };
11 virtual ~MaterialBase(){}
12 virtual void setMaterialType(osg::ref_ptr<osg::Material>& mat, float r, float g, float b, float t) = 0;
13 virtual void loadTexture(osg::ref_ptr<osg::Texture2D>& texture2D) {};
14};
15
Definition MaterialBase.h:7
virtual ~MaterialBase()
Definition MaterialBase.h:11
bool hasTexture
Definition MaterialBase.h:10
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)
Definition MaterialBase.h:13
MaterialBase()
Definition MaterialBase.h:9