diff options
author | Brian Paul <[email protected]> | 2006-08-23 23:10:14 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-08-23 23:10:14 +0000 |
commit | 4d12a05e6c11ca8d7325503131b2594dfe304164 (patch) | |
tree | ddfec24494574b8d9a24fdfdefc5c94b3b105a39 /src/mesa/main/bufferobj.h | |
parent | 261a806f9e26347d756bddeae81f4e98325b8e84 (diff) |
Added _mesa_lookup_program() and _mesa_lookup_bufferobj() functions to avoid
a lot of casting elsewhere.
Use _mesa_lookup_texture() in tdfx driver, use _mesa_lookup_bufferobj() in r300
driver.
Diffstat (limited to 'src/mesa/main/bufferobj.h')
-rw-r--r-- | src/mesa/main/bufferobj.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.h b/src/mesa/main/bufferobj.h index 05e27c984ea..f54f9e9ff00 100644 --- a/src/mesa/main/bufferobj.h +++ b/src/mesa/main/bufferobj.h @@ -44,6 +44,9 @@ _mesa_new_buffer_object( GLcontext *ctx, GLuint name, GLenum target ); extern void _mesa_delete_buffer_object( GLcontext *ctx, struct gl_buffer_object *bufObj ); +extern struct gl_buffer_object * +_mesa_lookup_bufferobj(GLcontext *ctx, GLuint buffer); + extern void _mesa_initialize_buffer_object( struct gl_buffer_object *obj, GLuint name, GLenum target ); |