#include "glheader.h"
#include "imports.h"
#include "glthread.h"
#include "hash.h"
#include "context.h"
Data Structures | |
| struct | _mesa_HashTable |
| The hash table data structure. More... | |
| struct | HashEntry |
| An entry in the hash table. More... | |
Defines | |
| #define | TABLE_SIZE 1023 |
| Size of lookup table/array. More... | |
Functions | |
| _mesa_HashTable * | _mesa_NewHashTable (void) |
| Create a new hash table. More... | |
| void | _mesa_DeleteHashTable (struct _mesa_HashTable *table) |
| Delete a hash table. More... | |
| void * | _mesa_HashLookup (const struct _mesa_HashTable *table, GLuint key) |
| Lookup an entry in the hash table. More... | |
| void | _mesa_HashInsert (struct _mesa_HashTable *table, GLuint key, void *data) |
| Insert into the hash table. More... | |
| void | _mesa_HashRemove (struct _mesa_HashTable *table, GLuint key) |
| Remove an entry from the hash table. More... | |
| GLuint | _mesa_HashFirstEntry (struct _mesa_HashTable *table) |
| Get the key of the "first" entry in the hash table. More... | |
| void | _mesa_HashPrint (const struct _mesa_HashTable *table) |
| Dump contents of hash table for debugging. More... | |
| GLuint | _mesa_HashFindFreeKeyBlock (struct _mesa_HashTable *table, GLuint numKeys) |
| Find a block of adjacent unused hash keys. More... | |
Used for display lists and texture objects. The hash functions are thread-safe.
|
|
Size of lookup table/array.
|
|
|
Delete a hash table.
|
|
||||||||||||
|
Find a block of adjacent unused hash keys.
|
|
|
Get the key of the "first" entry in the hash table. This is used in the course of deleting all display lists when a context is destroyed.
|
|
||||||||||||||||
|
Insert into the hash table. If an entry with this key already exists we'll replace the existing entry.
|
|
||||||||||||
|
Lookup an entry in the hash table.
|
|
|
Dump contents of hash table for debugging.
|
|
||||||||||||
|
Remove an entry from the hash table.
|
|
|
Create a new hash table.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001