PageRenderTime 213ms CodeModel.GetById 80ms app.highlight 5ms RepoModel.GetById 126ms 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
 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
27#ifndef LL_LLDRAWPOOLTREE_H
28#define LL_LLDRAWPOOLTREE_H
29
30#include "lldrawpool.h"
31
32class LLDrawPoolTree : public LLFacePool
33{
34	LLPointer<LLViewerTexture> mTexturep;
35public:
36	enum
37	{
38		VERTEX_DATA_MASK =	LLVertexBuffer::MAP_VERTEX |
39							LLVertexBuffer::MAP_NORMAL |
40							LLVertexBuffer::MAP_TEXCOORD0							
41	};
42
43	virtual U32 getVertexDataMask() { return VERTEX_DATA_MASK; }
44
45	LLDrawPoolTree(LLViewerTexture *texturep);
46
47	/*virtual*/ LLDrawPool *instancePool();
48
49	/*virtual*/ void prerender();
50
51	/*virtual*/ S32 getNumDeferredPasses() { return 1; }
52	/*virtual*/ void beginDeferredPass(S32 pass);
53	/*virtual*/ void endDeferredPass(S32 pass);
54	/*virtual*/ void renderDeferred(S32 pass);
55
56	/*virtual*/ S32 getNumShadowPasses() { return 1; }
57	/*virtual*/ void beginShadowPass(S32 pass);
58	/*virtual*/ void endShadowPass(S32 pass);
59	/*virtual*/ void renderShadow(S32 pass);
60
61	/*virtual*/ void beginRenderPass( S32 pass );
62	/*virtual*/ void render(S32 pass = 0);
63	/*virtual*/ void endRenderPass( S32 pass );
64	/*virtual*/ S32	 getNumPasses() { return 1; }
65	/*virtual*/ BOOL verify() const;
66	/*virtual*/ LLViewerTexture *getTexture();
67	/*virtual*/ LLViewerTexture *getDebugTexture();
68	/*virtual*/ LLColor3 getDebugColor() const; // For AGP debug display
69
70	static S32 sDiffTex;
71};
72
73#endif // LL_LLDRAWPOOLTREE_H