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 |
|
---|
25 | typedef void (SPU_APIENTRY *glAble)(GLenum);
|
---|
26 |
|
---|
27 | #define GLCLIENT_BIT_ALLOC 1024
|
---|
28 |
|
---|
29 | #endif
|
---|