cr_bufferobject.h revision ebc248f21b276416f76e20da3add001aff9fc30a
/* Copyright (c) 2001, Stanford University
* All rights reserved.
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#ifndef CR_STATE_BUFFEROBJECT_H
#define CR_STATE_BUFFEROBJECT_H
#include "cr_hash.h"
#include "state/cr_statetypes.h"
#include "state/cr_statefuncs.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
/*
* Buffer object, like a texture object, but encapsulates arbitrary
* data (vertex, image, etc).
*/
typedef struct {
so we need to resync every time guest wants to read from it*/
#ifndef IN_GUEST
/* bitfield representing the object usage. 1 means the object is used by the context with the given bitid */
#endif
typedef struct {
#ifdef __cplusplus
}
#endif
#endif /* CR_STATE_BUFFEROBJECT_H */