Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Environment/Vegetation/Headers/Vegetation.h

Diff revisions: vs.
  @@ -28,6 +28,7 @@
28 28 class Terrain;
29 29 class Texture;
30 30 class Transform;
31 + class SceneState;
31 32 class ShaderProgram;
32 33 class SceneGraphNode;
33 34 class RenderStateBlock;
  @@ -57,15 +58,14 @@
57 58 _stateRefreshIntervalBuffer(0),
58 59 _stateRefreshInterval(1000) ///<Every second?
59 60 {
60 - bool alpha = false;
61 - ImageTools::OpenImage(map,_map,alpha);
61 + _map.create(map);
62 62 }
63 63 ~Vegetation();
64 64 void initialize(const std::string& grassShader, Terrain* const terrain,SceneGraphNode* const terrainSGN);
65 65 inline void toggleRendering(bool state){_render = state;}
66 66 ///parentTransform: the transform of the parent terrain node
67 67 void draw(const RenderStage& currentStage, Transform* const parentTransform);
68 - void sceneUpdate(const U32 sceneTime,SceneGraphNode* const sgn);
68 + void sceneUpdate(const U32 sceneTime, SceneGraphNode* const sgn, SceneState& sceneState);
69 69
70 70 private:
71 71 bool generateTrees(); ///< True = Everything OK, False = Error. Check _errorCode