Add a isDisplacement bool

This commit is contained in:
vlj
2014-07-14 00:26:41 +02:00
parent 415a502ef1
commit d0f6e54bba
2 changed files with 3 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ STKMeshSceneNode::STKMeshSceneNode(irr::scene::IMesh* mesh, ISceneNode* parent,
const irr::core::vector3df& scale) :
CMeshSceneNode(mesh, parent, mgr, id, position, rotation, scale)
{
isDisplacement = false;
immediate_draw = false;
update_each_frame = false;
createGLMeshes();

View File

@@ -25,6 +25,7 @@ protected:
bool isMaterialInitialized;
bool immediate_draw;
bool update_each_frame;
bool isDisplacement;
public:
void setReloadEachFrame(bool);
STKMeshSceneNode(irr::scene::IMesh* mesh, ISceneNode* parent, irr::scene::ISceneManager* mgr, irr::s32 id,
@@ -34,6 +35,7 @@ public:
virtual void render();
virtual void setMesh(irr::scene::IMesh* mesh);
virtual ~STKMeshSceneNode();
void setIsDisplacement(bool v) { isDisplacement = v; }
};
#endif