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

dispatch.c File Reference


Detailed Description

This file generates all the gl* function entrypoints.

This code is not used if optimized assembly stubs are available (e.g., using x86/glapi_x86.S on IA32 or sparc/glapi_sparc.S on SPARC).

Note:
This file is also used to build the client-side libGL that loads DRI-based device drivers. At build-time it is symlinked to src/glx/x11.
Author:
Brian Paul <brian@precisioninsight.com>

#include "main/glheader.h"
#include "main/compiler.h"
#include "glapi/glapi.h"
#include "glapi/glapitable.h"
#include "glapi/glthread.h"
#include "glapi/dispatch.h"
#include "glapi/glapitemp.h"

Defines

#define KEYWORD1   PUBLIC
#define KEYWORD2   GLAPIENTRY
#define NAME(func)   gl##func
#define DISPATCH(FUNC, ARGS, MESSAGE)   CALL_ ## FUNC(GET_DISPATCH(), ARGS);
#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE)   return CALL_ ## FUNC(GET_DISPATCH(), ARGS);


Define Documentation

#define DISPATCH ( FUNC,
ARGS,
MESSAGE   )     CALL_ ## FUNC(GET_DISPATCH(), ARGS);

#define KEYWORD1   PUBLIC

#define KEYWORD2   GLAPIENTRY

#define NAME ( func   )     gl##func

#define RETURN_DISPATCH ( FUNC,
ARGS,
MESSAGE   )     return CALL_ ## FUNC(GET_DISPATCH(), ARGS);


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