move public structure definitions to vbo.h
This commit is contained in:
@@ -32,6 +32,34 @@
|
||||
#ifndef _VBO_H
|
||||
#define _VBO_H
|
||||
|
||||
#include "mtypes.h"
|
||||
|
||||
struct _mesa_prim {
|
||||
GLuint mode:8;
|
||||
GLuint indexed:1;
|
||||
GLuint begin:1;
|
||||
GLuint end:1;
|
||||
GLuint weak:1;
|
||||
GLuint pad:20;
|
||||
|
||||
GLuint start;
|
||||
GLuint count;
|
||||
};
|
||||
|
||||
/* Would like to call this a "vbo_index_buffer", but this would be
|
||||
* confusing as the indices are not neccessarily yet in a non-null
|
||||
* buffer object.
|
||||
*/
|
||||
struct _mesa_index_buffer {
|
||||
GLuint count;
|
||||
GLenum type;
|
||||
struct gl_buffer_object *obj;
|
||||
const void *ptr;
|
||||
GLuint rebase;
|
||||
};
|
||||
|
||||
|
||||
|
||||
GLboolean _vbo_CreateContext( GLcontext *ctx );
|
||||
void _vbo_DestroyContext( GLcontext *ctx );
|
||||
void _vbo_InvalidateState( GLcontext *ctx, GLuint new_state );
|
||||
|
||||
@@ -103,29 +103,4 @@ enum {
|
||||
|
||||
#define VBO_MAX_COPIED_VERTS 3
|
||||
|
||||
struct _mesa_prim {
|
||||
GLuint mode:8;
|
||||
GLuint indexed:1;
|
||||
GLuint begin:1;
|
||||
GLuint end:1;
|
||||
GLuint weak:1;
|
||||
GLuint pad:20;
|
||||
|
||||
GLuint start;
|
||||
GLuint count;
|
||||
};
|
||||
|
||||
/* Would like to call this a "vbo_index_buffer", but this would be
|
||||
* confusing as the indices are not neccessarily yet in a non-null
|
||||
* buffer object.
|
||||
*/
|
||||
struct _mesa_index_buffer {
|
||||
GLuint count;
|
||||
GLenum type;
|
||||
struct gl_buffer_object *obj;
|
||||
const void *ptr;
|
||||
GLuint rebase;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#ifndef _VBO_CONTEXT_H
|
||||
#define _VBO_CONTEXT_H
|
||||
|
||||
#include "vbo.h"
|
||||
#include "vbo_attrib.h"
|
||||
#include "vbo_save.h"
|
||||
#include "vbo_exec.h"
|
||||
|
||||
@@ -35,6 +35,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#define __VBO_EXEC_H__
|
||||
|
||||
#include "mtypes.h"
|
||||
#include "vbo.h"
|
||||
#include "vbo_attrib.h"
|
||||
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#define VBO_SAVE_H
|
||||
|
||||
#include "mtypes.h"
|
||||
#include "vbo.h"
|
||||
#include "vbo_attrib.h"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user