From a3f137094cd965d27e1b088499dd609b81a91906 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 1 Apr 2003 16:41:50 +0000 Subject: New device driver hooks for texture object and texture image creation to allow drivers to implement C++-like inheritance via containment. Lots of assorted clean-ups related to texture objects. --- src/mesa/main/teximage.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/mesa/main/teximage.h') diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 8cbc0d6615..7ab6810209 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -1,4 +1,4 @@ -/* $Id: teximage.h,v 1.22 2002/10/18 18:03:07 brianp Exp $ */ +/* $Id: teximage.h,v 1.23 2003/04/01 16:41:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -40,11 +40,11 @@ _mesa_base_tex_format( GLcontext *ctx, GLint format ); extern struct gl_texture_image * -_mesa_alloc_texture_image( void ); +_mesa_new_texture_image( GLcontext *ctx ); extern void -_mesa_free_texture_image( struct gl_texture_image *teximage ); +_mesa_delete_texture_image( struct gl_texture_image *teximage ); extern void @@ -70,6 +70,15 @@ _mesa_select_tex_image(GLcontext *ctx, const struct gl_texture_unit *texUnit, GLenum target, GLint level); +extern struct gl_texture_image * +_mesa_get_tex_image(GLcontext *ctx, const struct gl_texture_unit *texUnit, + GLenum target, GLint level); + + +extern struct gl_texture_image * +_mesa_get_proxy_tex_image(GLcontext *ctx, GLenum target, GLint level); + + extern GLint _mesa_max_texture_levels(GLcontext *ctx, GLenum target); -- cgit v1.2.3