1 | /* $Id: dlm_checklist.c 54905 2015-03-23 11:20:58Z vboxsync $ */
|
---|
2 | #include "cr_dlm.h"
|
---|
3 | #include "cr_mem.h"
|
---|
4 | #include "cr_pixeldata.h"
|
---|
5 | #include "cr_string.h"
|
---|
6 | #include "dlm.h"
|
---|
7 |
|
---|
8 | /*****************************************************************************
|
---|
9 | * These helper functions are used for GL functions that are listed in
|
---|
10 | * the APIspec.txt file as "checklist", meaning that sometimes they
|
---|
11 | * represent functions that can be stored in a display list, and sometimes
|
---|
12 | * they represent control functions that must be executed immediately.
|
---|
13 | *
|
---|
14 | * The calling SPU must use these check functions (or their equivalents)
|
---|
15 | * before asking the DLM to compile any elements of these types.
|
---|
16 | * They return nonzero (TRUE) if the element goes into a display list.
|
---|
17 | */
|
---|
18 |
|
---|
19 | int DLM_APIENTRY crDLMCheckListTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
|
---|
20 | {
|
---|
21 | return (target != GL_PROXY_TEXTURE_1D);
|
---|
22 | }
|
---|
23 |
|
---|
24 | int DLM_APIENTRY crDLMCheckListCompressedTexImage1DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imagesize, const GLvoid *data)
|
---|
25 | {
|
---|
26 | return (target != GL_PROXY_TEXTURE_1D);
|
---|
27 | }
|
---|
28 | int DLM_APIENTRY crDLMCheckListTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
|
---|
29 | {
|
---|
30 | return (target != GL_PROXY_TEXTURE_2D);
|
---|
31 | }
|
---|
32 |
|
---|
33 | int DLM_APIENTRY crDLMCheckListCompressedTexImage2DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imagesize, const GLvoid *data)
|
---|
34 | {
|
---|
35 | return (target != GL_PROXY_TEXTURE_2D);
|
---|
36 | }
|
---|
37 |
|
---|
38 | int DLM_APIENTRY crDLMCheckListTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
|
---|
39 | {
|
---|
40 | return (target != GL_PROXY_TEXTURE_3D);
|
---|
41 | }
|
---|
42 |
|
---|
43 | int DLM_APIENTRY crDLMCheckListTexImage3DEXT(GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
|
---|
44 | {
|
---|
45 | return (target != GL_PROXY_TEXTURE_3D);
|
---|
46 | }
|
---|
47 |
|
---|
48 | int DLM_APIENTRY crDLMCheckListCompressedTexImage3DARB(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imagesize, const GLvoid *data)
|
---|
49 | {
|
---|
50 | return (target != GL_PROXY_TEXTURE_3D);
|
---|
51 | }
|
---|