mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2025-02-17 08:27:39 +00:00
docs: use tables instead of pre-formatted text
This makes this easier to read. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10281>
This commit is contained in:
parent
1e4e22e6ba
commit
525f7b6a23
@ -101,13 +101,21 @@ Basic formatting guidelines
|
||||
- Function names follow various conventions depending on the type of
|
||||
function:
|
||||
|
||||
::
|
||||
|
||||
glFooBar() - a public GL entry point (in glapi_dispatch.c)
|
||||
_mesa_FooBar() - the internal immediate mode function
|
||||
save_FooBar() - retained mode (display list) function in dlist.c
|
||||
foo_bar() - a static (private) function
|
||||
_mesa_foo_bar() - an internal non-static Mesa function
|
||||
+---------------------+------------------------------------------+
|
||||
| Convention | Explanation |
|
||||
+=====================+==========================================+
|
||||
| ``glFooBar()`` | a public GL entry point (in |
|
||||
| | :file:`glapi_dispatch.c`) |
|
||||
+---------------------+------------------------------------------+
|
||||
| ``_mesa_FooBar()`` | the internal immediate mode function |
|
||||
+---------------------+------------------------------------------+
|
||||
| ``save_FooBar()`` | retained mode (display list) function in |
|
||||
| | :file:`dlist.c` |
|
||||
+---------------------+------------------------------------------+
|
||||
| ``foo_bar()`` | a static (private) function |
|
||||
+---------------------+------------------------------------------+
|
||||
| ``_mesa_foo_bar()`` | an internal non-static Mesa function |
|
||||
+---------------------+------------------------------------------+
|
||||
|
||||
- Constants, macros and enum names are ``ALL_UPPERCASE``, with \_
|
||||
between words.
|
||||
|
@ -67,23 +67,23 @@ extensions incorporated as standard features:
|
||||
Also note that several OpenGL tokens were renamed in OpenGL 1.5 for the
|
||||
sake of consistency. The old tokens are still available.
|
||||
|
||||
::
|
||||
|
||||
New Token Old Token
|
||||
------------------------------------------------------------
|
||||
GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
|
||||
GL_FOG_COORD GL_FOG_COORDINATE
|
||||
GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
|
||||
GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
|
||||
GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
|
||||
GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
|
||||
GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY
|
||||
GL_SRC0_RGB GL_SOURCE0_RGB
|
||||
GL_SRC1_RGB GL_SOURCE1_RGB
|
||||
GL_SRC2_RGB GL_SOURCE2_RGB
|
||||
GL_SRC0_ALPHA GL_SOURCE0_ALPHA
|
||||
GL_SRC1_ALPHA GL_SOURCE1_ALPHA
|
||||
GL_SRC2_ALPHA GL_SOURCE2_ALPHA
|
||||
========================== ===============================
|
||||
New Token Old Token
|
||||
========================== ===============================
|
||||
GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
|
||||
GL_FOG_COORD GL_FOG_COORDINATE
|
||||
GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
|
||||
GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
|
||||
GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
|
||||
GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
|
||||
GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY
|
||||
GL_SRC0_RGB GL_SOURCE0_RGB
|
||||
GL_SRC1_RGB GL_SOURCE1_RGB
|
||||
GL_SRC2_RGB GL_SOURCE2_RGB
|
||||
GL_SRC0_ALPHA GL_SOURCE0_ALPHA
|
||||
GL_SRC1_ALPHA GL_SOURCE1_ALPHA
|
||||
GL_SRC2_ALPHA GL_SOURCE2_ALPHA
|
||||
========================== ===============================
|
||||
|
||||
See the `OpenGL
|
||||
specification <https://www.opengl.org/documentation/spec.html>`__ for
|
||||
|
@ -200,8 +200,15 @@ This extension was added in Mesa 2.6
|
||||
Summary of X-related environment variables
|
||||
------------------------------------------
|
||||
|
||||
::
|
||||
|
||||
MESA_RGB_VISUAL - specifies the X visual and depth for RGB mode (X only)
|
||||
MESA_BACK_BUFFER - specifies how to implement the back color buffer (X only)
|
||||
MESA_GAMMA - gamma correction coefficients (X only)
|
||||
+-----------------------------+--------------------------------------+
|
||||
| Environment variable | Description |
|
||||
+=============================+======================================+
|
||||
| :envvar:`MESA_RGB_VISUAL` | specifies the X visual and depth for |
|
||||
| | RGB mode (X only) |
|
||||
+-----------------------------+--------------------------------------+
|
||||
| :envvar:`MESA_BACK_BUFFER` | specifies how to implement the back |
|
||||
| | color buffer (X only) |
|
||||
+-----------------------------+--------------------------------------+
|
||||
| :envvar:`MESA_GAMMA` | gamma correction coefficients |
|
||||
| | (X only) |
|
||||
+-----------------------------+--------------------------------------+
|
||||
|
Loading…
x
Reference in New Issue
Block a user