VirtualBox

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

Last change on this file since 16574 was 15532, checked in by vboxsync, 16 years ago

crOpenGL: export to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 663 bytes
Line 
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#endif
Note: See TracBrowser for help on using the repository browser.

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