diff options
Diffstat (limited to 'linden/indra/llrender/llagpmempoolati.h')
-rw-r--r-- | linden/indra/llrender/llagpmempoolati.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/linden/indra/llrender/llagpmempoolati.h b/linden/indra/llrender/llagpmempoolati.h deleted file mode 100644 index 67803f6..0000000 --- a/linden/indra/llrender/llagpmempoolati.h +++ /dev/null | |||
@@ -1,92 +0,0 @@ | |||
1 | /** | ||
2 | * @file llagpmempoolati.h | ||
3 | * @brief LLAGPMemPoolATI base class | ||
4 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLAGPMEMPOOLATI_H | ||
29 | #define LL_LLAGPMEMPOOLATI_H | ||
30 | |||
31 | #include "llagpmempool.h" | ||
32 | |||
33 | class LLAGPMemPoolATI : public LLAGPMemPool | ||
34 | { | ||
35 | public: | ||
36 | LLAGPMemPoolATI(S32 request); | ||
37 | virtual ~LLAGPMemPoolATI(); | ||
38 | |||
39 | void bind() {} | ||
40 | |||
41 | void enable() {} | ||
42 | |||
43 | void disable() {} | ||
44 | |||
45 | void flush() {} | ||
46 | |||
47 | // No point in these being inline, is there? They're virtual functions anyway... | ||
48 | /*virtual*/ inline LLAGPMemBlock *alloc(S32 size); | ||
49 | /*virtual*/ inline void free(LLAGPMemBlock *block); | ||
50 | /*virtual*/ inline void dump(); | ||
51 | protected: | ||
52 | /*virtual*/ LLAGPMemBlock *createBlock(const U32 offset, const U32 size); | ||
53 | |||
54 | protected: | ||
55 | U32 mName; | ||
56 | }; | ||
57 | |||
58 | class LLAGPMemBlockATI : public LLAGPMemBlock | ||
59 | { | ||
60 | public: | ||
61 | LLAGPMemBlockATI(LLAGPMemPool *mem_poolp, const U32 name, const U32 offset, const U32 size); | ||
62 | virtual ~LLAGPMemBlockATI() { mMemPoolp->freeBlock(this); }; | ||
63 | |||
64 | /*virtual*/ void copy (void *source, const U32 size_bytes); | ||
65 | /*virtual*/ void copyColor(void *source, const U32 size_bytes); | ||
66 | /*virtual*/ void free(); | ||
67 | /*virtual*/ void bindGLVertexPointer(const U32 stride, const U32 offset); | ||
68 | /*virtual*/ void bindGLNormalPointer(const U32 stride, const U32 offset); | ||
69 | /*virtual*/ void bindGLBinormalPointer(const S32 index, const U32 stride,const U32 offset); | ||
70 | /*virtual*/ void bindGLColorPointer(const U32 stride, const U32 offset); | ||
71 | /*virtual*/ void bindGLTexCoordPointer(const U32 stride, const U32 offset); | ||
72 | /*virtual*/ void bindGLVertexWeightPointer(const S32 index, const U32 stride, const U32 offset); | ||
73 | /*virtual*/ void bindGLVertexClothingWeightPointer(const S32 index, const U32 stride, const U32 offset); | ||
74 | |||
75 | /*virtual*/ U32 getOffset() const { return mOffset; } | ||
76 | /*virtual*/ U32 getSize() const { return mSize; } | ||
77 | |||
78 | /*virtual*/ BOOL hasMappedMem() const { return TRUE; } | ||
79 | /*virtual*/ U8* getMappedMem(); | ||
80 | /*virtual*/ U32 createFence() { return 0; } | ||
81 | /*virtual*/ void deleteFence(const U32 fence) {} | ||
82 | /*virtual*/ void sendFence(U32 fence) { } | ||
83 | /*virtual*/ void waitFence(U32 fence) { } | ||
84 | private: | ||
85 | U32 mName; | ||
86 | U32 mOffset; | ||
87 | U32 mSize; | ||
88 | |||
89 | friend class LLAGPMemPoolATI; | ||
90 | }; | ||
91 | |||
92 | #endif // LL_LLAGPMEMPOOLATI_H | ||