OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
SceneNodeMaterial.h
Go to the documentation of this file.
1
#pragma once
2
#include <string>
3
#include "
MaterialBase.h
"
4
#include <osg/Material>
5
6
class
SceneNodeMaterial
7
{
8
public
:
9
virtual
~SceneNodeMaterial
(){}
10
MaterialBase
*
setMaterial
(osg::ref_ptr<osg::Material>& mat,
const
std::string& materialType,
float
r,
float
g,
float
b,
float
t);
11
bool
materialHasTexture
(
MaterialBase
* mat);
12
};
13
MaterialBase.h
MaterialBase
Definition
MaterialBase.h:7
SceneNodeMaterial
Definition
SceneNodeMaterial.h:7
SceneNodeMaterial::setMaterial
MaterialBase * setMaterial(osg::ref_ptr< osg::Material > &mat, const std::string &materialType, float r, float g, float b, float t)
Definition
SceneNodeMaterial.cpp:5
SceneNodeMaterial::materialHasTexture
bool materialHasTexture(MaterialBase *mat)
Definition
SceneNodeMaterial.cpp:17
SceneNodeMaterial::~SceneNodeMaterial
virtual ~SceneNodeMaterial()
Definition
SceneNodeMaterial.h:9
Libraries
Viewer
include
SceneNodeMaterial.h
Generated by
1.10.0