VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_checklist.c@ 64572

最後變更 在這個檔案從64572是 54905,由 vboxsync 提交於 10 年 前

Host 3D: Chromium server: add Expando SPU and DLM module in order to record and save OpenGL Display Lists (currently disabled).

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 2.3 KB
 
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
19int 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
24int 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}
28int 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
33int 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
38int 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
43int 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
48int 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}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette