diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llrender/llagpmempoolapple.h | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/linden/indra/llrender/llagpmempoolapple.h b/linden/indra/llrender/llagpmempoolapple.h deleted file mode 100644 index 4a72a28..0000000 --- a/linden/indra/llrender/llagpmempoolapple.h +++ /dev/null | |||
@@ -1,95 +0,0 @@ | |||
1 | /** | ||
2 | * @file llagpmempoolapple.h | ||
3 | * @brief LLAGPMemPoolAPPLE 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_LLAGPMEMPOOLAPPLE_H | ||
29 | #define LL_LLAGPMEMPOOLAPPLE_H | ||
30 | |||
31 | #include "llagpmempool.h" | ||
32 | |||
33 | #if LL_DARWIN | ||
34 | class LLAGPMemPoolAPPLE : public LLAGPMemPool | ||
35 | { | ||
36 | public: | ||
37 | LLAGPMemPoolAPPLE(S32 request); | ||
38 | virtual ~LLAGPMemPoolAPPLE(); | ||
39 | |||
40 | /*virtual*/ void flush(); | ||
41 | /*virtual*/ void dump(); | ||
42 | /*virtual*/ void enable(); | ||
43 | /*virtual*/ void disable(); | ||
44 | /*virtual*/ void bind(); | ||
45 | |||
46 | /*virtual*/ U32 createFence(); | ||
47 | /*virtual*/ void deleteFence(const U32 fence); | ||
48 | /*virtual*/ void sendFence(U32 fence); | ||
49 | /*virtual*/ void waitFence(U32 fence); | ||
50 | |||
51 | protected: | ||
52 | /*virtual*/ LLAGPMemBlock *createBlock(const U32 offset, const U32 size); | ||
53 | |||
54 | protected: | ||
55 | U8 *mBase; | ||
56 | }; | ||
57 | |||
58 | class LLAGPMemBlockAPPLE : public LLAGPMemBlock | ||
59 | { | ||
60 | public: | ||
61 | LLAGPMemBlockAPPLE(LLAGPMemPool *mem_poolp, U8 *baseptr, const S32 offset, const U32 size); | ||
62 | virtual ~LLAGPMemBlockAPPLE(); | ||
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 | |||
68 | /*virtual*/ void bindGLVertexPointer(const U32 stride, const U32 offset); | ||
69 | /*virtual*/ void bindGLNormalPointer(const U32 stride, const U32 offset); | ||
70 | /*virtual*/ void bindGLBinormalPointer(const S32 index, const U32 stride, const U32 offset); | ||
71 | /*virtual*/ void bindGLColorPointer(const U32 stride, const U32 offset); | ||
72 | /*virtual*/ void bindGLTexCoordPointer(const U32 stride, const U32 offset); | ||
73 | /*virtual*/ void bindGLVertexWeightPointer(const S32 index, const U32 stride, const U32 offset); | ||
74 | /*virtual*/ void bindGLVertexClothingWeightPointer(const S32 index, const U32 stride, const U32 offset); | ||
75 | |||
76 | /*virtual*/ U32 getOffset() const { return mOffset; } | ||
77 | /*virtual*/ U32 getSize() const { return mSize; } | ||
78 | |||
79 | /*virtual*/ BOOL hasMappedMem() const { return TRUE; } | ||
80 | /*virtual*/ U8* getMappedMem(); | ||
81 | /*virtual*/ U32 createFence(); | ||
82 | /*virtual*/ void deleteFence(const U32 fence); | ||
83 | /*virtual*/ void sendFence(U32 fence); | ||
84 | /*virtual*/ void waitFence(U32 fence); | ||
85 | |||
86 | private: | ||
87 | U8 *mMemp; | ||
88 | U32 mOffset; // Offset from base | ||
89 | U32 mSize; | ||
90 | friend class LLAGPMemPoolAPPLE; | ||
91 | }; | ||
92 | |||
93 | #endif // LL_DARWIN | ||
94 | |||
95 | #endif // LL_LLAGPMEMPOOLAPPLE_H | ||