My Project: openb3dlib.mod/openb3d/src/material.h Source File

My Project

material.h
Go to the documentation of this file.
1 #ifndef MATERIAL_H
2 #define MATERIAL_H
3
4 class Surface;
5
6 class MaterialPlugin{
7 public:
8 int Active;
9 virtual void TurnOn(Surface* surf = 0);
10 virtual void TurnOff();
11 virtual void UpdateData();
12
13 void Activate(){
14 if (1==1){//(HardwareInfo->ShaderSupport!=0){
15 Active = 1;
16 }else{
17 Active = 0;
18 }
19 }
20
21 void DeActivate(){
22 Active = 0;
23 }
24 };
25
26 #endif
Surface
Definition: surface.h:19
MaterialPlugin
Definition: material.h:6
MaterialPlugin::TurnOn
virtual void TurnOn(Surface *surf=0)
MaterialPlugin::Active
int Active
Definition: material.h:8
MaterialPlugin::Activate
void Activate()
Definition: material.h:13
MaterialPlugin::TurnOff
virtual void TurnOff()
MaterialPlugin::UpdateData
virtual void UpdateData()
MaterialPlugin::DeActivate
void DeActivate()
Definition: material.h:21