|
|
@@ -9,7 +9,7 @@ Core Graphics API
|
|
|
Graphics Enumerations
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: enum gs_draw_mode
|
|
|
+.. enum:: gs_draw_mode
|
|
|
|
|
|
Draw mode. Can be one of the following values:
|
|
|
|
|
|
@@ -19,7 +19,7 @@ Graphics Enumerations
|
|
|
- GS_TRIS - Draws individual triangles
|
|
|
- GS_TRISTRIP - Draws a triangle strip
|
|
|
|
|
|
-.. type:: enum gs_color_format
|
|
|
+.. enum:: gs_color_format
|
|
|
|
|
|
Color format. Can be one of the following values:
|
|
|
|
|
|
@@ -47,7 +47,7 @@ Graphics Enumerations
|
|
|
- GS_BGRA_UNORM - BGRA, 8 bits per channel, no SRGB aliasing
|
|
|
- GS_RG16 - RG, 16 bits per channel
|
|
|
|
|
|
-.. type:: enum gs_color_space
|
|
|
+.. enum:: gs_color_space
|
|
|
|
|
|
Color space. Can be one of the following values:
|
|
|
|
|
|
@@ -56,7 +56,7 @@ Graphics Enumerations
|
|
|
- GS_CS_709_EXTENDED - Canvas, Mac EDR (HDR)
|
|
|
- GS_CS_709_SCRGB - 1.0 = 80 nits, Windows/Linux HDR
|
|
|
|
|
|
-.. type:: enum gs_zstencil_format
|
|
|
+.. enum:: gs_zstencil_format
|
|
|
|
|
|
Z-Stencil buffer format. Can be one of the following values:
|
|
|
|
|
|
@@ -66,14 +66,14 @@ Graphics Enumerations
|
|
|
- GS_Z32F - 32 bit floating point Z buffer
|
|
|
- GS_Z32F_S8X24 - 32 bit floating point Z buffer, 8 bit stencil
|
|
|
|
|
|
-.. type:: enum gs_index_type
|
|
|
+.. enum:: gs_index_type
|
|
|
|
|
|
Index buffer type. Can be one of the following values:
|
|
|
|
|
|
- GS_UNSIGNED_SHORT - 16 bit index
|
|
|
- GS_UNSIGNED_LONG - 32 bit index
|
|
|
|
|
|
-.. type:: enum gs_cull_mode
|
|
|
+.. enum:: gs_cull_mode
|
|
|
|
|
|
Cull mode. Can be one of the following values:
|
|
|
|
|
|
@@ -81,7 +81,7 @@ Graphics Enumerations
|
|
|
- GS_FRONT - Cull front faces
|
|
|
- GS_NEITHER - Cull neither
|
|
|
|
|
|
-.. type:: enum gs_blend_type
|
|
|
+.. enum:: gs_blend_type
|
|
|
|
|
|
Blend type. Can be one of the following values:
|
|
|
|
|
|
@@ -97,7 +97,7 @@ Graphics Enumerations
|
|
|
- GS_BLEND_INVDSTALPHA
|
|
|
- GS_BLEND_SRCALPHASAT
|
|
|
|
|
|
-.. type:: enum gs_depth_test
|
|
|
+.. enum:: gs_depth_test
|
|
|
|
|
|
Depth test type. Can be one of the following values:
|
|
|
|
|
|
@@ -110,7 +110,7 @@ Graphics Enumerations
|
|
|
- GS_NOTEQUAL
|
|
|
- GS_ALWAYS
|
|
|
|
|
|
-.. type:: enum gs_stencil_side
|
|
|
+.. enum:: gs_stencil_side
|
|
|
|
|
|
Stencil side. Can be one of the following values:
|
|
|
|
|
|
@@ -118,7 +118,7 @@ Graphics Enumerations
|
|
|
- GS_STENCIL_BACK
|
|
|
- GS_STENCIL_BOTH
|
|
|
|
|
|
-.. type:: enum gs_stencil_op_type
|
|
|
+.. enum:: gs_stencil_op_type
|
|
|
|
|
|
Stencil operation type. Can be one of the following values:
|
|
|
|
|
|
@@ -129,7 +129,7 @@ Graphics Enumerations
|
|
|
- GS_DECR
|
|
|
- GS_INVERT
|
|
|
|
|
|
-.. type:: enum gs_cube_sides
|
|
|
+.. enum:: gs_cube_sides
|
|
|
|
|
|
Cubemap side. Can be one of the following values:
|
|
|
|
|
|
@@ -140,7 +140,7 @@ Graphics Enumerations
|
|
|
- GS_POSITIVE_Z
|
|
|
- GS_NEGATIVE_Z
|
|
|
|
|
|
-.. type:: enum gs_sample_filter
|
|
|
+.. enum:: gs_sample_filter
|
|
|
|
|
|
Sample filter type. Can be one of the following values:
|
|
|
|
|
|
@@ -154,7 +154,7 @@ Graphics Enumerations
|
|
|
- GS_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR
|
|
|
- GS_FILTER_MIN_MAG_LINEAR_MIP_POINT
|
|
|
|
|
|
-.. type:: enum gs_address_mode
|
|
|
+.. enum:: gs_address_mode
|
|
|
|
|
|
Address mode. Can be one of the following values:
|
|
|
|
|
|
@@ -164,7 +164,7 @@ Graphics Enumerations
|
|
|
- GS_ADDRESS_BORDER
|
|
|
- GS_ADDRESS_MIRRORONCE
|
|
|
|
|
|
-.. type:: enum gs_texture_type
|
|
|
+.. enum:: gs_texture_type
|
|
|
|
|
|
Texture type. Can be one of the following values:
|
|
|
|
|
|
@@ -176,7 +176,7 @@ Graphics Enumerations
|
|
|
Graphics Structures
|
|
|
-------------------
|
|
|
|
|
|
-.. type:: struct gs_monitor_info
|
|
|
+.. struct:: gs_monitor_info
|
|
|
.. member:: int gs_monitor_info.rotation_degrees
|
|
|
.. member:: long gs_monitor_info.x
|
|
|
.. member:: long gs_monitor_info.y
|
|
|
@@ -185,13 +185,13 @@ Graphics Structures
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: struct gs_tvertarray
|
|
|
+.. struct:: gs_tvertarray
|
|
|
.. member:: size_t gs_tvertarray.width
|
|
|
.. member:: void *gs_tvertarray.array
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: struct gs_vb_data
|
|
|
+.. struct:: gs_vb_data
|
|
|
.. member:: size_t gs_vb_data.num
|
|
|
.. member:: struct vec3 *gs_vb_data.points
|
|
|
.. member:: struct vec3 *gs_vb_data.normals
|
|
|
@@ -202,7 +202,7 @@ Graphics Structures
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: struct gs_sampler_info
|
|
|
+.. struct:: gs_sampler_info
|
|
|
.. member:: enum gs_sample_filter gs_sampler_info.filter
|
|
|
.. member:: enum gs_address_mode gs_sampler_info.address_u
|
|
|
.. member:: enum gs_address_mode gs_sampler_info.address_v
|
|
|
@@ -212,7 +212,7 @@ Graphics Structures
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: struct gs_display_mode
|
|
|
+.. struct:: gs_display_mode
|
|
|
.. member:: uint32_t gs_display_mode.width
|
|
|
.. member:: uint32_t gs_display_mode.height
|
|
|
.. member:: uint32_t gs_display_mode.bits
|
|
|
@@ -220,7 +220,7 @@ Graphics Structures
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: struct gs_rect
|
|
|
+.. struct:: gs_rect
|
|
|
.. member:: int gs_rect.x
|
|
|
.. member:: int gs_rect.y
|
|
|
.. member:: int gs_rect.cx
|
|
|
@@ -228,7 +228,7 @@ Graphics Structures
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: struct gs_window
|
|
|
+.. struct:: gs_window
|
|
|
|
|
|
A window structure. This structure is used with a native widget.
|
|
|
|
|
|
@@ -247,7 +247,7 @@ Graphics Structures
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: struct gs_init_data
|
|
|
+.. struct:: gs_init_data
|
|
|
|
|
|
Swap chain initialization data.
|
|
|
|
|
|
@@ -1038,7 +1038,7 @@ Texture Functions
|
|
|
|
|
|
---------------------
|
|
|
|
|
|
-.. type:: enum gs_dmabuf_flags
|
|
|
+.. enum:: gs_dmabuf_flags
|
|
|
|
|
|
DMA-BUF capabilities:
|
|
|
|
|
|
@@ -1574,16 +1574,16 @@ Render Helper Functions
|
|
|
Graphics Types
|
|
|
--------------
|
|
|
|
|
|
-.. type:: typedef struct gs_duplicator gs_duplicator_t
|
|
|
-.. type:: typedef struct gs_texture gs_texture_t
|
|
|
-.. type:: typedef struct gs_stage_surface gs_stagesurf_t
|
|
|
-.. type:: typedef struct gs_zstencil_buffer gs_zstencil_t
|
|
|
-.. type:: typedef struct gs_vertex_buffer gs_vertbuffer_t
|
|
|
-.. type:: typedef struct gs_index_buffer gs_indexbuffer_t
|
|
|
-.. type:: typedef struct gs_sampler_state gs_samplerstate_t
|
|
|
-.. type:: typedef struct gs_swap_chain gs_swapchain_t
|
|
|
-.. type:: typedef struct gs_texture_render gs_texrender_t
|
|
|
-.. type:: typedef struct gs_shader gs_shader_t
|
|
|
-.. type:: typedef struct gs_shader_param gs_sparam_t
|
|
|
-.. type:: typedef struct gs_device gs_device_t
|
|
|
-.. type:: typedef struct graphics_subsystem graphics_t
|
|
|
+.. type:: struct gs_duplicator gs_duplicator_t
|
|
|
+.. type:: struct gs_texture gs_texture_t
|
|
|
+.. type:: struct gs_stage_surface gs_stagesurf_t
|
|
|
+.. type:: struct gs_zstencil_buffer gs_zstencil_t
|
|
|
+.. type:: struct gs_vertex_buffer gs_vertbuffer_t
|
|
|
+.. type:: struct gs_index_buffer gs_indexbuffer_t
|
|
|
+.. type:: struct gs_sampler_state gs_samplerstate_t
|
|
|
+.. type:: struct gs_swap_chain gs_swapchain_t
|
|
|
+.. type:: struct gs_texture_render gs_texrender_t
|
|
|
+.. type:: struct gs_shader gs_shader_t
|
|
|
+.. type:: struct gs_shader_param gs_sparam_t
|
|
|
+.. type:: struct gs_device gs_device_t
|
|
|
+.. type:: struct graphics_subsystem graphics_t
|