From: Brian Paul Date: Tue, 17 Aug 2004 14:08:59 +0000 (+0000) Subject: some updated info about adding new extensions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51830613a941d07e19f38f328657864ca2326111;p=mesa.git some updated info about adding new extensions --- diff --git a/docs/devinfo.html b/docs/devinfo.html index 97e17bc1c0a..c1ddea3e4b9 100644 --- a/docs/devinfo.html +++ b/docs/devinfo.html @@ -10,29 +10,39 @@

Adding Extentions

-To add a new GL extension to Mesa you have to do the following. -

-   If glext.h doesn't define the extension, edit include/GL/gl.h and add:
-	- new enum tokens
-	- new API function entry points
-	- #define GL_EXT_the_extension_name 1
-
-   If adding a new API function (call it glNewFunctionEXT):
-	- insert glNewFunctionEXT()into src/apiext.h
-	- edit src/types.h and add NewFunction to the gl_api_table struct
-	- implement gl_NewFunction() in the appropriate src file
-	- hook gl_NewFunction() into pointers.c
-	- add display list support in dlist.c for save_NewFunction()
-	- add glNewFunctionEXT to gl_GetProcAddress() in extensions.c or
-	  in the device driver's GetProcAddress() function if appropriate
-
-

-If adding new GL state be sure to update get.c and enable.c -

-

-In general, look for an extension similar to the new one that's already -implemented in Mesa and follow it by example. -

+To add a new GL extension to Mesa you have to do at least the following. + +