GL_ARB_vertex_buffer_object working now, at least for non-indexed

vertex arrays.
This commit is contained in:
Brian Paul
2003-09-17 16:06:49 +00:00
parent 397d1e4d57
commit 57d882b684
11 changed files with 156 additions and 90 deletions

View File

@@ -36,6 +36,7 @@
#include "glheader.h"
#include "GL/osmesa.h"
#include "buffers.h"
#include "bufferobj.h"
#include "context.h"
#include "colormac.h"
#include "depth.h"
@@ -681,6 +682,16 @@ hook_in_driver_functions( GLcontext *ctx )
ctx->Driver.CopyConvolutionFilter1D = _swrast_CopyConvolutionFilter1D;
ctx->Driver.CopyConvolutionFilter2D = _swrast_CopyConvolutionFilter2D;
#if FEATURE_ARB_vertex_buffer_object
ctx->Driver.NewBufferObject = _mesa_new_buffer_object;
ctx->Driver.DeleteBuffer = _mesa_delete_buffer_object;
ctx->Driver.BindBuffer = NULL;
ctx->Driver.BufferData = _mesa_buffer_data;
ctx->Driver.BufferSubData = _mesa_buffer_subdata;
ctx->Driver.MapBuffer = _mesa_buffer_map;
ctx->Driver.UnmapBuffer = NULL;
#endif
swdd->SetBuffer = set_buffer;
/* RGB(A) span/pixel functions */