docs: use code-block for c
Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10281>
This commit is contained in:
parent
63496d25de
commit
dc2eca51ed
|
@ -121,7 +121,7 @@ Maya-03 test 2
|
||||||
|
|
||||||
This test makes some unusual calls to glRotate. For example:
|
This test makes some unusual calls to glRotate. For example:
|
||||||
|
|
||||||
::
|
.. code-block:: c
|
||||||
|
|
||||||
glRotate(50, 50, 50, 1);
|
glRotate(50, 50, 50, 1);
|
||||||
glRotate(100, 100, 100, 1);
|
glRotate(100, 100, 100, 1);
|
||||||
|
|
|
@ -140,7 +140,7 @@ GLX_MESA_pixmap_colormap
|
||||||
|
|
||||||
This extension adds the GLX function:
|
This extension adds the GLX function:
|
||||||
|
|
||||||
::
|
.. code-block:: c
|
||||||
|
|
||||||
GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
|
GLXPixmap glXCreateGLXPixmapMESA( Display *dpy, XVisualInfo *visual,
|
||||||
Pixmap pixmap, Colormap cmap )
|
Pixmap pixmap, Colormap cmap )
|
||||||
|
@ -173,7 +173,7 @@ The GLX_MESA_release_buffers extension allows a client to explicitly
|
||||||
deallocate the ancillary buffers by calling glxReleaseBuffersMESA() just
|
deallocate the ancillary buffers by calling glxReleaseBuffersMESA() just
|
||||||
before an X window is destroyed. For example:
|
before an X window is destroyed. For example:
|
||||||
|
|
||||||
::
|
.. code-block:: c
|
||||||
|
|
||||||
#ifdef GLX_MESA_release_buffers
|
#ifdef GLX_MESA_release_buffers
|
||||||
glXReleaseBuffersMESA( dpy, window );
|
glXReleaseBuffersMESA( dpy, window );
|
||||||
|
|
Loading…
Reference in New Issue