core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

dlist.h File Reference


Detailed Description

Display lists management.

#include "mtypes.h"

Functions

void _mesa_delete_list (GLcontext *ctx, struct gl_display_list *dlist)
 Delete the named display list, but don't remove from hash table.
void GLAPIENTRY _mesa_CallList (GLuint list)
void GLAPIENTRY _mesa_CallLists (GLsizei n, GLenum type, const GLvoid *lists)
 Execute glCallLists: call multiple display lists.
void GLAPIENTRY _mesa_DeleteLists (GLuint list, GLsizei range)
 Delete a sequence of consecutive display lists.
void GLAPIENTRY _mesa_EndList (void)
 End definition of current display list.
GLuint GLAPIENTRY _mesa_GenLists (GLsizei range)
 Return a display list number, n, such that lists n through n+range-1 are free.
GLboolean GLAPIENTRY _mesa_IsList (GLuint list)
 Test if a display list number is valid.
void GLAPIENTRY _mesa_ListBase (GLuint base)
 Set the offset added to list numbers in glCallLists.
void GLAPIENTRY _mesa_NewList (GLuint list, GLenum mode)
 Begin a new display list.
void GLAPIENTRY _mesa_save_CallLists (GLsizei n, GLenum type, const GLvoid *lists)
void GLAPIENTRY _mesa_save_CallList (GLuint list)
void _mesa_init_dlist_table (struct _glapi_table *table)
 Setup the given dispatch table to point to Mesa's display list building functions.
void _mesa_compile_error (GLcontext *ctx, GLenum error, const char *s)
 Compile an error into current display list.
void * _mesa_alloc_instruction (GLcontext *ctx, GLuint opcode, GLuint sz)
 Allocate space for a display list instruction.
GLint _mesa_alloc_opcode (GLcontext *ctx, GLuint sz, void(*execute)(GLcontext *, void *), void(*destroy)(GLcontext *, void *), void(*print)(GLcontext *, void *))
 This function allows modules and drivers to get their own opcodes for extending display list functionality.
void _mesa_init_display_list (GLcontext *ctx)
 Initialize display list state for given context.
void _mesa_save_vtxfmt_init (GLvertexformat *vfmt)


Function Documentation

void* _mesa_alloc_instruction ( GLcontext ctx,
GLuint  opcode,
GLuint  bytes 
)

Allocate space for a display list instruction.

Parameters:
opcode the instruction opcode (OPCODE_* value)
bytes instruction size in bytes, not counting opcode.
Returns:
pointer to the usable data area (not including the internal opcode).

GLint _mesa_alloc_opcode ( GLcontext ctx,
GLuint  size,
void(*)(GLcontext *, void *)  execute,
void(*)(GLcontext *, void *)  destroy,
void(*)(GLcontext *, void *)  print 
)

This function allows modules and drivers to get their own opcodes for extending display list functionality.

Parameters:
ctx the rendering context
size number of bytes for storing the new display list command
execute function to execute the new display list command
destroy function to destroy the new display list command
print function to print the new display list command
Returns:
the new opcode number or -1 if error

void GLAPIENTRY _mesa_CallList ( GLuint  list  ) 

void GLAPIENTRY _mesa_CallLists ( GLsizei  n,
GLenum  type,
const GLvoid *  lists 
)

Execute glCallLists: call multiple display lists.

void _mesa_compile_error ( GLcontext ctx,
GLenum  error,
const char *  s 
)

Compile an error into current display list.

void _mesa_delete_list ( GLcontext ctx,
struct gl_display_list dlist 
)

Delete the named display list, but don't remove from hash table.

Parameters:
dlist - display list pointer

void GLAPIENTRY _mesa_DeleteLists ( GLuint  list,
GLsizei  range 
)

Delete a sequence of consecutive display lists.

void GLAPIENTRY _mesa_EndList ( void   ) 

End definition of current display list.

GLuint GLAPIENTRY _mesa_GenLists ( GLsizei  range  ) 

Return a display list number, n, such that lists n through n+range-1 are free.

void _mesa_init_display_list ( GLcontext ctx  ) 

Initialize display list state for given context.

void _mesa_init_dlist_table ( struct _glapi_table *  table  ) 

Setup the given dispatch table to point to Mesa's display list building functions.

This does not include any of the tnl functions - they are initialized from _mesa_init_api_defaults and from the active vtxfmt struct.

GLboolean GLAPIENTRY _mesa_IsList ( GLuint  list  ) 

Test if a display list number is valid.

void GLAPIENTRY _mesa_ListBase ( GLuint  base  ) 

Set the offset added to list numbers in glCallLists.

void GLAPIENTRY _mesa_NewList ( GLuint  list,
GLenum  mode 
)

Begin a new display list.

void GLAPIENTRY _mesa_save_CallList ( GLuint  list  ) 

void GLAPIENTRY _mesa_save_CallLists ( GLsizei  n,
GLenum  type,
const GLvoid *  lists 
)

void _mesa_save_vtxfmt_init ( GLvertexformat vfmt  ) 


Generated on Sun Sep 27 06:47:45 2009 for Mesa Main by  doxygen 1.5.4