From bb79790662f56eb71aafd3f020cd86ad810f56b2 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 24 Jan 2000 16:19:54 +0000 Subject: prefixed hash functions with _mesa_ --- src/mesa/main/texobj.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/mesa/main/texobj.c') diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index c23ea2c60d7..a7e6e34b8b4 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1,10 +1,10 @@ -/* $Id: texobj.c,v 1.10 1999/12/01 21:10:08 brianp Exp $ */ +/* $Id: texobj.c,v 1.11 2000/01/24 16:19:55 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 3.3 * - * Copyright (C) 1999 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2000 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -90,7 +90,7 @@ gl_alloc_texture_object( struct gl_shared_state *shared, GLuint name, if (name > 0) { /* insert into hash table */ - HashInsert(shared->TexObjects, name, obj); + _mesa_HashInsert(shared->TexObjects, name, obj); } } return obj; @@ -137,7 +137,7 @@ void gl_free_texture_object( struct gl_shared_state *shared, if (t->Name) { /* remove from hash table */ - HashRemove(shared->TexObjects, t->Name); + _mesa_HashRemove(shared->TexObjects, t->Name); } /* free texture image */ @@ -338,7 +338,7 @@ _mesa_GenTextures( GLsizei n, GLuint *texName ) return; } - first = HashFindFreeKeyBlock(ctx->Shared->TexObjects, n); + first = _mesa_HashFindFreeKeyBlock(ctx->Shared->TexObjects, n); /* Return the texture names */ for (i=0;i0) { t = (struct gl_texture_object *) - HashLookup(ctx->Shared->TexObjects, texName[i]); + _mesa_HashLookup(ctx->Shared->TexObjects, texName[i]); if (t) { GLuint u; for (u=0; uShared->DefaultD[dim]; else { - struct HashTable *hash = ctx->Shared->TexObjects; + struct _mesa_HashTable *hash = ctx->Shared->TexObjects; newTexObj = (struct gl_texture_object *) HashLookup(hash, texName); if (!newTexObj) @@ -523,7 +523,7 @@ _mesa_PrioritizeTextures( GLsizei n, const GLuint *texName, struct gl_texture_object *t; if (texName[i]>0) { t = (struct gl_texture_object *) - HashLookup(ctx->Shared->TexObjects, texName[i]); + _mesa_HashLookup(ctx->Shared->TexObjects, texName[i]); if (t) { t->Priority = CLAMP( priorities[i], 0.0F, 1.0F ); @@ -562,7 +562,7 @@ _mesa_AreTexturesResident( GLsizei n, const GLuint *texName, return GL_FALSE; } t = (struct gl_texture_object *) - HashLookup(ctx->Shared->TexObjects, texName[i]); + _mesa_HashLookup(ctx->Shared->TexObjects, texName[i]); if (t) { if (ctx->Driver.IsTextureResident) residences[i] = ctx->Driver.IsTextureResident( ctx, t ); @@ -588,7 +588,7 @@ _mesa_IsTexture( GLuint texture ) GET_CURRENT_CONTEXT(ctx); ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH_WITH_RETVAL(ctx, "glIsTextures", GL_FALSE); - if (texture>0 && HashLookup(ctx->Shared->TexObjects, texture)) { + if (texture>0 && _mesa_HashLookup(ctx->Shared->TexObjects, texture)) { return GL_TRUE; } else { -- cgit v1.2.3