Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 330 vs 331 for /trunk/Source Code/Rendering/RenderPass/Headers/RenderBin.h

Diff revisions: vs.
  @@ -20,7 +20,8 @@
20 20
21 21 */
22 22
23 - /*The system is similar to the one used in Torque3D (RenderPassMgr / RenderBinManager) as it was used as an inspiration.
23 + /*The system is similar to the one used in Torque3D (RenderPassMgr / RenderBinManager)
24 + as it was used as an inspiration.
24 25 All credit goes to GarageGames for the idea:
25 26 - http://garagegames.com/
26 27 - https://github.com/GarageGames/Torque3D
  @@ -57,7 +58,7 @@
57 58 };
58 59
59 60 class SceneRenderState;
60 - ///This class contains a list of "RenderBinItem"'s and stores them sorted depending on the desired designation
61 + /// This class contains a list of "RenderBinItem"'s and stores them sorted depending on designation
61 62 class RenderBin {
62 63 typedef vectorImpl< RenderBinItem > RenderBinStack;
63 64 public:
  @@ -96,14 +97,25 @@
96 97 virtual void refresh();
97 98
98 99 virtual void addNodeToBin(SceneGraphNode* const sgn, const vec3<F32>& eyePos);
99 - inline const RenderBinItem& getItem(U16 index) const {assert(index < _renderBinStack.size()); return _renderBinStack[index]; }
100 100
101 - inline U16 getBinSize() const {return (U16)_renderBinStack.size();}
102 - inline D32 getSortOrder() const {return _drawKey;}
101 + inline const RenderBinItem& getItem(U16 index) const {
102 + assert(index < _renderBinStack.size());
103 + return _renderBinStack[index];
104 + }
105 +
106 + inline U16 getBinSize() const {
107 + return (U16)_renderBinStack.size();
108 + }
103 109
104 - inline const RenderBinType& getType() const {return _rbType;}
110 + inline D32 getSortOrder() const {
111 + return _drawKey;
112 + }
113 +
114 + inline const RenderBinType& getType() const {
115 + return _rbType;
116 + }
105 117
106 - bool operator< (const RenderBin& rhs){
118 + bool operator< (const RenderBin& rhs) {
107 119 return (_drawKey < rhs._drawKey);
108 120 };
109 121