mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 06:18:24 +02:00
mesa: move some glapi bits around
Move _glapi_proc typedef from glapitable.h to glapi.h Also, don't include glapitable.h from glapi.h Before we were including the huge glapitable.h file in every .c file.
This commit is contained in:
parent
d22ef6bcba
commit
2dbc515a66
7 changed files with 11 additions and 5 deletions
|
|
@ -28,6 +28,9 @@
|
|||
#if !defined( _DISPATCH_H_ )
|
||||
# define _DISPATCH_H_
|
||||
|
||||
#include "glapitable.h"
|
||||
|
||||
|
||||
/**
|
||||
* \file dispatch.h
|
||||
* Macros for handling GL dispatch tables.
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ class PrintGlTable(gl_XML.gl_print_base):
|
|||
print '# define GLAPIENTRYP GLAPIENTRY *'
|
||||
print '#endif'
|
||||
print ''
|
||||
print 'typedef void (*_glapi_proc)(void); /* generic function pointer */'
|
||||
print ''
|
||||
print 'struct _glapi_table'
|
||||
print '{'
|
||||
|
|
|
|||
|
|
@ -46,10 +46,13 @@
|
|||
|
||||
|
||||
#include "GL/gl.h"
|
||||
#include "glapitable.h"
|
||||
#include "glthread.h"
|
||||
|
||||
|
||||
struct _glapi_table;
|
||||
|
||||
typedef void (*_glapi_proc)(void); /* generic function pointer */
|
||||
|
||||
typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@
|
|||
# define GLAPIENTRYP GLAPIENTRY *
|
||||
#endif
|
||||
|
||||
typedef void (*_glapi_proc)(void); /* generic function pointer */
|
||||
|
||||
struct _glapi_table
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
#include "enums.h"
|
||||
#include "macros.h"
|
||||
#include "mtypes.h"
|
||||
#include "glapi/glapitable.h"
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -145,6 +145,8 @@
|
|||
#include "version.h"
|
||||
#include "vtxfmt.h"
|
||||
#include "glapi/glthread.h"
|
||||
#include "glapi/glapioffsets.h"
|
||||
#include "glapi/glapitable.h"
|
||||
#if FEATURE_NV_vertex_program || FEATURE_NV_fragment_program
|
||||
#include "shader/program.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -38,8 +38,7 @@
|
|||
#include "glheader.h"
|
||||
#include <GL/internal/glcore.h> /* __GLcontextModes (GLvisual) */
|
||||
#include "config.h" /* Hardwired parameters */
|
||||
#include "glapi/glapitable.h"
|
||||
#include "glapi/glthread.h"
|
||||
#include "glapi/glapi.h"
|
||||
#include "math/m_matrix.h" /* GLmatrix */
|
||||
#include "bitset.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue