2 * Copyright © 2010 Intel Corporation
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
24 * Shuang He <shuang.he@intel.com>
25 * Ian Romanick <ian.d.romanick@intel.com>
28 #ifndef OBJECT_PURGEABLE_H
29 #define OBJECT_PURGEABLE_H
35 #define APIENTRYP APIENTRY *
38 #ifndef GL_APPLE_object_purgeable
39 #define GL_APPLE_object_purgeable 1
41 #define GL_RELEASED_APPLE 0x8A19
42 #define GL_VOLATILE_APPLE 0x8A1A
43 #define GL_RETAINED_APPLE 0x8A1B
44 #define GL_UNDEFINED_APPLE 0x8A1C
45 #define GL_PURGEABLE_APPLE 0x8A1D
46 #define GL_BUFFER_OBJECT_APPLE 0x85B3
49 typedef GLenum (APIENTRYP PFNGLOBJECTPURGEABLEAPPLEPROC
) (GLenum objectType
, GLuint name
, GLenum option
);
50 typedef GLenum (APIENTRYP PFNGLOBJECTUNPURGEABLEAPPLEPROC
) (GLenum objectType
, GLuint name
, GLenum option
);
51 typedef void (APIENTRYP PFNGLGETOBJECTPARAMETERIVAPPLEPROC
) (GLenum objectType
, GLuint name
, GLenum pname
, GLint
* params
);
55 extern PFNGLOBJECTPURGEABLEAPPLEPROC pglObjectPurgeableAPPLE
;
56 extern PFNGLOBJECTUNPURGEABLEAPPLEPROC pglObjectUnpurgeableAPPLE
;
57 extern PFNGLGETOBJECTPARAMETERIVAPPLEPROC pglGetObjectParameterivAPPLE
;
59 extern void init_ObjectPurgeableAPI(void);
61 extern GLboolean
test_ObjectpurgeableAPPLE(GLenum objectType
, GLuint name
,
64 extern GLboolean
test_ObjectunpurgeableAPPLE(GLenum objectType
, GLuint name
,
67 extern GLboolean
test_GetObjectParameterivAPPLE(GLenum objectType
, GLuint name
,
70 extern GLboolean
test_Purgeable(GLuint object
, GLenum type
);
72 #endif /* OBJECT_PURGEABLE_H */