PageRenderTime 95ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/lldrawpooltree.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 73 lines | 36 code | 12 blank | 25 comment | 0 complexity | e1d3c9a465d9e18687c6d6b1e2a3a0e0 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file lldrawpooltree.h
  3. * @brief LLDrawPoolTree class definition
  4. *
  5. * $LicenseInfo:firstyear=2002&license=viewerlgpl$
  6. * Second Life Viewer Source Code
  7. * Copyright (C) 2010, Linden Research, Inc.
  8. *
  9. * This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation;
  12. * version 2.1 of the License only.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. *
  23. * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
  24. * $/LicenseInfo$
  25. */
  26. #ifndef LL_LLDRAWPOOLTREE_H
  27. #define LL_LLDRAWPOOLTREE_H
  28. #include "lldrawpool.h"
  29. class LLDrawPoolTree : public LLFacePool
  30. {
  31. LLPointer<LLViewerTexture> mTexturep;
  32. public:
  33. enum
  34. {
  35. VERTEX_DATA_MASK = LLVertexBuffer::MAP_VERTEX |
  36. LLVertexBuffer::MAP_NORMAL |
  37. LLVertexBuffer::MAP_TEXCOORD0
  38. };
  39. virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; }
  40. LLDrawPoolTree(LLViewerTexture *texturep);
  41. /*virtual*/ LLDrawPool *instancePool();
  42. /*virtual*/ void prerender();
  43. /*virtual*/ S32 getNumDeferredPasses() { return 1; }
  44. /*virtual*/ void beginDeferredPass(S32 pass);
  45. /*virtual*/ void endDeferredPass(S32 pass);
  46. /*virtual*/ void renderDeferred(S32 pass);
  47. /*virtual*/ S32 getNumShadowPasses() { return 1; }
  48. /*virtual*/ void beginShadowPass(S32 pass);
  49. /*virtual*/ void endShadowPass(S32 pass);
  50. /*virtual*/ void renderShadow(S32 pass);
  51. /*virtual*/ void beginRenderPass( S32 pass );
  52. /*virtual*/ void render(S32 pass = 0);
  53. /*virtual*/ void endRenderPass( S32 pass );
  54. /*virtual*/ S32 getNumPasses() { return 1; }
  55. /*virtual*/ BOOL verify() const;
  56. /*virtual*/ LLViewerTexture *getTexture();
  57. /*virtual*/ LLViewerTexture *getDebugTexture();
  58. /*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display
  59. static S32 sDiffTex;
  60. };
  61. #endif // LL_LLDRAWPOOLTREE_H