lldrawpoolsimple.h

Go to the documentation of this file.
00001 
00032 #ifndef LL_LLDRAWPOOLSIMPLE_H
00033 #define LL_LLDRAWPOOLSIMPLE_H
00034 
00035 #include "lldrawpool.h"
00036 
00037 class LLDrawPoolSimple : public LLRenderPass
00038 {
00039 public:
00040         enum
00041         {
00042                 VERTEX_DATA_MASK =      LLVertexBuffer::MAP_VERTEX |
00043                                                         LLVertexBuffer::MAP_NORMAL |
00044                                                         LLVertexBuffer::MAP_TEXCOORD |
00045                                                         LLVertexBuffer::MAP_COLOR
00046         };
00047         virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; }
00048 
00049         LLDrawPoolSimple();
00050         
00051         /*virtual*/ void beginRenderPass(S32 pass);
00052         /*virtual*/ void render(S32 pass = 0);
00053         /*virtual*/ void prerender();
00054 
00055 };
00056 
00057 class LLDrawPoolGlow : public LLRenderPass
00058 {
00059 public:
00060         LLDrawPoolGlow(): LLRenderPass(LLDrawPool::POOL_GLOW) { }
00061         
00062         enum
00063         {
00064                 VERTEX_DATA_MASK =      LLVertexBuffer::MAP_VERTEX |
00065                                                         LLVertexBuffer::MAP_TEXCOORD
00066         };
00067 
00068         virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; }
00069 
00070         virtual void prerender() { }
00071 
00072         void render(S32 pass = 0);
00073         void pushBatch(LLDrawInfo& params, U32 mask, BOOL texture = TRUE);
00074 
00075 };
00076 
00077 #endif // LL_LLDRAWPOOLSIMPLE_H

Generated on Thu Jul 1 06:08:26 2010 for Second Life Viewer by  doxygen 1.4.7