summaryrefslogtreecommitdiffstats
path: root/src/VBox/GuestHost/OpenGL/state_tracker/state_internals.h
blob: 6610ca8a72d533e757a4a48f7459b1a695061255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright (c) 2001, Stanford University
 * All rights reserved.
 *
 * See the file LICENSE.txt for information on redistributing this software.
 */

#ifndef STATE_INTERNALS_H
#define STATE_INTERNALS_H

#include "cr_spu.h"
#include "state/cr_statetypes.h"

/* Set the flush_func to NULL *before* it's called, so that we can 
 * call state functions from within flush without infinite recursion. 
 * Yucky, but "necessary" for color material. */

#define FLUSH() \
	if (g->flush_func != NULL) \
	{ \
		CRStateFlushFunc cached_ff = g->flush_func; \
		g->flush_func = NULL; \
		cached_ff( g->flush_arg ); \
	}

typedef void (SPU_APIENTRY *glAble)(GLenum);

#define GLCLIENT_BIT_ALLOC 1024

#endif