VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h@ 52350

最後變更 在這個檔案從52350是 25303,由 vboxsync 提交於 15 年 前

crOpenGL: properly restore context states after snapshot loading

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 696 位元組
 
1/* Copyright (c) 2001, Stanford University
2 * All rights reserved.
3 *
4 * See the file LICENSE.txt for information on redistributing this software.
5 */
6
7#ifndef STATE_INTERNALS_H
8#define STATE_INTERNALS_H
9
10#include "cr_spu.h"
11#include "state/cr_statetypes.h"
12
13/* Set the flush_func to NULL *before* it's called, so that we can
14 * call state functions from within flush without infinite recursion.
15 * Yucky, but "necessary" for color material. */
16
17#define FLUSH() \
18 if (g->flush_func != NULL) \
19 { \
20 CRStateFlushFunc cached_ff = g->flush_func; \
21 g->flush_func = NULL; \
22 cached_ff( g->flush_arg ); \
23 }
24
25typedef void (SPU_APIENTRY *glAble)(GLenum);
26
27#define GLCLIENT_BIT_ALLOC 1024
28
29#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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