Blender V4.3
gpu_py_state.cc File Reference
#include <Python.h>
#include "GPU_framebuffer.hh"
#include "GPU_state.hh"
#include "../generic/py_capi_utils.hh"
#include "../generic/python_utildefines.hh"
#include "gpu_py.hh"
#include "gpu_py_framebuffer.hh"
#include "gpu_py_state.hh"

Go to the source code of this file.

Functions

Manage Stack
 PyDoc_STRVAR (pygpu_state_blend_set_doc, ".. function:: blend_set(mode)\n" "\n" " Defines the fixed pipeline blending equation.\n" "\n" " :arg mode: The type of blend mode.\n" "\n" " * ``NONE`` No blending.\n" " * ``ALPHA`` The original color channels are interpolated according to the alpha " "value.\n" " * ``ALPHA_PREMULT`` The original color channels are interpolated according to the " "alpha value with the new colors pre-multiplied by this value.\n" " * ``ADDITIVE`` The original color channels are added by the corresponding ones.\n" " * ``ADDITIVE_PREMULT`` The original color channels are added by the corresponding ones " "that are pre-multiplied by the alpha value.\n" " * ``MULTIPLY`` The original color channels are multiplied by the corresponding ones.\n" " * ``SUBTRACT`` The original color channels are subtracted by the corresponding ones.\n" " * ``INVERT`` The original color channels are replaced by its complementary color.\n" " :type mode: str\n")
 
static PyObject * pygpu_state_blend_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_blend_get_doc, ".. function:: blend_get()\n" "\n" " Current blending equation.\n" "\n")
 
static PyObject * pygpu_state_blend_get (PyObject *)
 
 PyDoc_STRVAR (pygpu_state_clip_distances_set_doc, ".. function:: clip_distances_set(distances_enabled)\n" "\n" " Sets the number of `gl_ClipDistance` planes used for clip geometry.\n" "\n" " :arg distances_enabled: Number of clip distances enabled.\n" " :type distances_enabled: int\n")
 
static PyObject * pygpu_state_clip_distances_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_depth_test_set_doc, ".. function:: depth_test_set(mode)\n" "\n" " Defines the depth_test equation.\n" "\n" " :arg mode: The depth test equation name.\n" " Possible values are `NONE`, `ALWAYS`, `LESS`, `LESS_EQUAL`, `EQUAL`, " "`GREATER` and `GREATER_EQUAL`.\n" " :type mode: str\n")
 
static PyObject * pygpu_state_depth_test_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_depth_test_get_doc, ".. function:: depth_test_get()\n" "\n" " Current depth_test equation.\n" "\n")
 
static PyObject * pygpu_state_depth_test_get (PyObject *)
 
 PyDoc_STRVAR (pygpu_state_depth_mask_set_doc, ".. function:: depth_mask_set(value)\n" "\n" " Write to depth component.\n" "\n" " :arg value: True for writing to the depth component.\n" " :type near: bool\n")
 
static PyObject * pygpu_state_depth_mask_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_depth_mask_get_doc, ".. function:: depth_mask_get()\n" "\n" " Writing status in the depth component.\n")
 
static PyObject * pygpu_state_depth_mask_get (PyObject *)
 
 PyDoc_STRVAR (pygpu_state_viewport_set_doc, ".. function:: viewport_set(x, y, xsize, ysize)\n" "\n" " Specifies the viewport of the active framebuffer.\n" " Note: The viewport state is not saved upon framebuffer rebind.\n" "\n" " :arg x, y: lower left corner of the viewport_set rectangle, in pixels.\n" " :type x, y: int\n" " :arg xsize, ysize: width and height of the viewport_set.\n" " :type xsize, ysize: int\n")
 
static PyObject * pygpu_state_viewport_set (PyObject *, PyObject *args)
 
 PyDoc_STRVAR (pygpu_state_viewport_get_doc, ".. function:: viewport_get()\n" "\n" " Viewport of the active framebuffer.\n")
 
static PyObject * pygpu_state_viewport_get (PyObject *, PyObject *)
 
 PyDoc_STRVAR (pygpu_state_scissor_set_doc, ".. function:: scissor_set(x, y, xsize, ysize)\n" "\n" " Specifies the scissor area of the active framebuffer.\n" " Note: The scissor state is not saved upon framebuffer rebind.\n" "\n" " :arg x, y: lower left corner of the scissor rectangle, in pixels.\n" " :type x, y: int\n" " :arg xsize, ysize: width and height of the scissor rectangle.\n" " :type xsize, ysize: int\n")
 
static PyObject * pygpu_state_scissor_set (PyObject *, PyObject *args)
 
 PyDoc_STRVAR (pygpu_state_scissor_get_doc, ".. function:: scissor_get()\n" "\n" " Retrieve the scissors of the active framebuffer.\n" " Note: Only valid between 'scissor_set' and a framebuffer rebind.\n" "\n" " :return: The scissor of the active framebuffer as a tuple\n" " (x, y, xsize, ysize).\n" " x, y: lower left corner of the scissor rectangle, in pixels.\n" " xsize, ysize: width and height of the scissor rectangle.\n" " :rtype: tuple[int, int, int, int]\n")
 
static PyObject * pygpu_state_scissor_get (PyObject *, PyObject *)
 
 PyDoc_STRVAR (pygpu_state_scissor_test_set_doc, ".. function:: scissor_test_set(enable)\n" "\n" " Enable/disable scissor testing on the active framebuffer.\n" "\n" " :arg enable:\n" " True - enable scissor testing.\n" " False - disable scissor testing.\n" " :type enable: bool\n")
 
static PyObject * pygpu_state_scissor_test_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_line_width_set_doc, ".. function:: line_width_set(width)\n" "\n" " Specify the width of rasterized lines.\n" "\n" " :arg size: New width.\n" " :type mode: float\n")
 
static PyObject * pygpu_state_line_width_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_line_width_get_doc, ".. function:: line_width_get()\n" "\n" " Current width of rasterized lines.\n")
 
static PyObject * pygpu_state_line_width_get (PyObject *)
 
 PyDoc_STRVAR (pygpu_state_point_size_set_doc, ".. function:: point_size_set(size)\n" "\n" " Specify the diameter of rasterized points.\n" "\n" " :arg size: New diameter.\n" " :type mode: float\n")
 
static PyObject * pygpu_state_point_size_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_color_mask_set_doc, ".. function:: color_mask_set(r, g, b, a)\n" "\n" " Enable or disable writing of frame buffer color components.\n" "\n" " :arg r, g, b, a: components red, green, blue, and alpha.\n" " :type r, g, b, a: bool\n")
 
static PyObject * pygpu_state_color_mask_set (PyObject *, PyObject *args)
 
 PyDoc_STRVAR (pygpu_state_face_culling_set_doc, ".. function:: face_culling_set(culling)\n" "\n" " Specify whether none, front-facing or back-facing facets can be culled.\n" "\n" " :arg mode: `NONE`, `FRONT` or `BACK`.\n" " :type mode: str\n")
 
static PyObject * pygpu_state_face_culling_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_front_facing_set_doc, ".. function:: front_facing_set(invert)\n" "\n" " Specifies the orientation of front-facing polygons.\n" "\n" " :arg invert: True for clockwise polygons as front-facing.\n" " :type mode: bool\n")
 
static PyObject * pygpu_state_front_facing_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_program_point_size_set_doc, ".. function:: program_point_size_set(enable)\n" "\n" " If enabled, the derived point size is taken from the (potentially clipped) " "shader builtin gl_PointSize.\n" "\n" " :arg enable: True for shader builtin gl_PointSize.\n" " :type enable: bool\n")
 
static PyObject * pygpu_state_program_point_size_set (PyObject *, PyObject *value)
 
 PyDoc_STRVAR (pygpu_state_active_framebuffer_get_doc, ".. function:: active_framebuffer_get(enable)\n" "\n" " Return the active frame-buffer in context.\n")
 
static PyObject * pygpu_state_active_framebuffer_get (PyObject *)
 

Variables

Helper Functions
static const PyC_StringEnumItems pygpu_state_blend_items []
 
static const PyC_StringEnumItems pygpu_state_depthtest_items []
 
static const PyC_StringEnumItems pygpu_state_faceculling_items []
 

Module

static PyMethodDef pygpu_state__tp_methods []
 
static PyModuleDef pygpu_state_module_def
 
 PyDoc_STRVAR (pygpu_state__tp_doc, "This module provides access to the gpu state.")
 
PyObject * bpygpu_state_init ()
 

Detailed Description

This file defines the gpu.state API.

  • Use bpygpu_ for local API.
  • Use BPyGPU for public API.

Definition in file gpu_py_state.cc.

Function Documentation

◆ bpygpu_state_init()

PyObject * bpygpu_state_init ( )

Definition at line 617 of file gpu_py_state.cc.

References pygpu_state_module_def.

Referenced by BPyInit_gpu().

◆ PyDoc_STRVAR() [1/21]

PyDoc_STRVAR ( pygpu_state__tp_doc ,
"This module provides access to the gpu state."  )

◆ PyDoc_STRVAR() [2/21]

PyDoc_STRVAR ( pygpu_state_active_framebuffer_get_doc ,
".. function:: active_framebuffer_get(enable)\n" "\n" " Return the active frame-buffer in context.\n"  )

◆ PyDoc_STRVAR() [3/21]

PyDoc_STRVAR ( pygpu_state_blend_get_doc ,
".. function:: blend_get()\n" "\n" " Current blending equation.\n" "\n"  )

◆ PyDoc_STRVAR() [4/21]

PyDoc_STRVAR ( pygpu_state_blend_set_doc ,
".. function:: blend_set(mode)\n" "\n" " Defines the fixed pipeline blending equation.\n" "\n" " :arg mode: The type of blend mode.\n" "\n" " * ``NONE`` No blending.\n" " * ``ALPHA`` The original color channels are interpolated according to the alpha " "value.\n" " * ``ALPHA_PREMULT`` The original color channels are interpolated according to the " "alpha value with the new colors pre-multiplied by this value.\n" " * ``ADDITIVE`` The original color channels are added by the corresponding ones.\n" " * ``ADDITIVE_PREMULT`` The original color channels are added by the corresponding ones " "that are pre-multiplied by the alpha value.\n" " * ``MULTIPLY`` The original color channels are multiplied by the corresponding ones.\n" " * ``SUBTRACT`` The original color channels are subtracted by the corresponding ones.\n" " * ``INVERT`` The original color channels are replaced by its complementary color.\n" " :type mode: str\n"  )

◆ PyDoc_STRVAR() [5/21]

PyDoc_STRVAR ( pygpu_state_clip_distances_set_doc ,
".. function:: clip_distances_set(distances_enabled)\n" "\n" " Sets the number of `gl_ClipDistance` planes used for clip geometry.\n" "\n" " :arg distances_enabled: Number of clip distances enabled.\n" " :type distances_enabled: int\n"  )

◆ PyDoc_STRVAR() [6/21]

PyDoc_STRVAR ( pygpu_state_color_mask_set_doc ,
".. function:: color_mask_set(r, g, b, a)\n" "\n" " Enable or disable writing of frame buffer color components.\n" "\n" " :arg r,
g ,
b ,
a:components red,
green ,
blue ,
and alpha.\n" " :type r,
g ,
b ,
a:bool\n"  )

◆ PyDoc_STRVAR() [7/21]

PyDoc_STRVAR ( pygpu_state_depth_mask_get_doc ,
".. function:: depth_mask_get()\n" "\n" " Writing status in the depth component.\n"  )

◆ PyDoc_STRVAR() [8/21]

PyDoc_STRVAR ( pygpu_state_depth_mask_set_doc ,
".. function:: depth_mask_set(value)\n" "\n" " Write to depth component.\n" "\n" " :arg value: True for writing to the depth component.\n" " :type near: bool\n"  )

◆ PyDoc_STRVAR() [9/21]

PyDoc_STRVAR ( pygpu_state_depth_test_get_doc ,
".. function:: depth_test_get()\n" "\n" " Current depth_test equation.\n" "\n"  )

◆ PyDoc_STRVAR() [10/21]

PyDoc_STRVAR ( pygpu_state_depth_test_set_doc ,
".. function:: depth_test_set(mode)\n" "\n" " Defines the depth_test equation.\n" "\n" " :arg mode: The depth test equation name.\n" " Possible values are `NONE` ,
`ALWAYS` ,
`LESS` ,
`LESS_EQUAL` ,
`EQUAL` ,
" "`GREATER` and `GREATER_EQUAL`.\n" " :type mode:str\n"  )

◆ PyDoc_STRVAR() [11/21]

PyDoc_STRVAR ( pygpu_state_face_culling_set_doc ,
".. function:: face_culling_set(culling)\n" "\n" " Specify whether none,
front-facing or back-facing facets can be culled.\n" "\n" " :arg mode:`NONE` ,
`FRONT` or `BACK`.\n" " :type mode:str\n"  )

◆ PyDoc_STRVAR() [12/21]

PyDoc_STRVAR ( pygpu_state_front_facing_set_doc ,
".. function:: front_facing_set(invert)\n" "\n" " Specifies the orientation of front-facing polygons.\n" "\n" " :arg invert: True for clockwise polygons as front-facing.\n" " :type mode: bool\n"  )

◆ PyDoc_STRVAR() [13/21]

PyDoc_STRVAR ( pygpu_state_line_width_get_doc ,
".. function:: line_width_get()\n" "\n" " Current width of rasterized lines.\n"  )

◆ PyDoc_STRVAR() [14/21]

PyDoc_STRVAR ( pygpu_state_line_width_set_doc ,
".. function:: line_width_set(width)\n" "\n" " Specify the width of rasterized lines.\n" "\n" " :arg size: New width.\n" " :type mode: float\n"  )

◆ PyDoc_STRVAR() [15/21]

PyDoc_STRVAR ( pygpu_state_point_size_set_doc ,
".. function:: point_size_set(size)\n" "\n" " Specify the diameter of rasterized points.\n" "\n" " :arg size: New diameter.\n" " :type mode: float\n"  )

◆ PyDoc_STRVAR() [16/21]

PyDoc_STRVAR ( pygpu_state_program_point_size_set_doc ,
".. function:: program_point_size_set(enable)\n" "\n" " If enabled,
the derived point size is taken from the(potentially clipped) " "shader builtin gl_PointSize.\n" "\n" " :arg enable:True for shader builtin gl_PointSize.\n" " :type enable:bool\n"  )

◆ PyDoc_STRVAR() [17/21]

PyDoc_STRVAR ( pygpu_state_scissor_get_doc ,
".. function:: scissor_get()\n" "\n" " Retrieve the scissors of the active framebuffer.\n" " Note: Only valid between 'scissor_set' and a framebuffer rebind.\n" "\n" " :return: The scissor of the active framebuffer as a tuple\n" " (x, y, xsize, ysize).\n" " x,
y:lower left corner of the scissor rectangle,
in pixels.\n" " xsize,
ysize:width and height of the scissor rectangle.\n" " :rtype:tuple\n" [int, int, int, int] )

◆ PyDoc_STRVAR() [18/21]

PyDoc_STRVAR ( pygpu_state_scissor_set_doc ,
".. function:: scissor_set(x, y, xsize, ysize)\n" "\n" " Specifies the scissor area of the active framebuffer.\n" " Note: The scissor state is not saved upon framebuffer rebind.\n" "\n" " :arg x,
y:lower left corner of the scissor rectangle,
in pixels.\n" " :type x,
y:int\n" " :arg xsize,
ysize:width and height of the scissor rectangle.\n" " :type xsize,
ysize:int\n"  )

◆ PyDoc_STRVAR() [19/21]

PyDoc_STRVAR ( pygpu_state_scissor_test_set_doc ,
".. function:: scissor_test_set(enable)\n" "\n" " Enable/disable scissor testing on the active framebuffer.\n" "\n" " :arg enable:\n" " True - enable scissor testing.\n" " False - disable scissor testing.\n" " :type enable: bool\n"  )

◆ PyDoc_STRVAR() [20/21]

PyDoc_STRVAR ( pygpu_state_viewport_get_doc ,
".. function:: viewport_get()\n" "\n" " Viewport of the active framebuffer.\n"  )

◆ PyDoc_STRVAR() [21/21]

PyDoc_STRVAR ( pygpu_state_viewport_set_doc ,
".. function:: viewport_set(x, y, xsize, ysize)\n" "\n" " Specifies the viewport of the active framebuffer.\n" " Note: The viewport state is not saved upon framebuffer rebind.\n" "\n" " :arg x,
y:lower left corner of the viewport_set rectangle,
in pixels.\n" " :type x,
y:int\n" " :arg xsize,
ysize:width and height of the viewport_set.\n" " :type xsize,
ysize:int\n"  )

◆ pygpu_state_active_framebuffer_get()

static PyObject * pygpu_state_active_framebuffer_get ( PyObject * )
static

◆ pygpu_state_blend_get()

static PyObject * pygpu_state_blend_get ( PyObject * )
static

◆ pygpu_state_blend_set()

static PyObject * pygpu_state_blend_set ( PyObject * ,
PyObject * value )
static

◆ pygpu_state_clip_distances_set()

static PyObject * pygpu_state_clip_distances_set ( PyObject * ,
PyObject * value )
static

Definition at line 132 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, GPU_clip_distances(), and int.

◆ pygpu_state_color_mask_set()

static PyObject * pygpu_state_color_mask_set ( PyObject * ,
PyObject * args )
static

Definition at line 413 of file gpu_py_state.cc.

References b, BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_color_mask().

◆ pygpu_state_depth_mask_get()

static PyObject * pygpu_state_depth_mask_get ( PyObject * )
static

Definition at line 214 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_depth_mask_get().

◆ pygpu_state_depth_mask_set()

static PyObject * pygpu_state_depth_mask_set ( PyObject * ,
PyObject * value )
static

Definition at line 196 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, GPU_depth_mask(), and PyC_ParseBool().

◆ pygpu_state_depth_test_get()

static PyObject * pygpu_state_depth_test_get ( PyObject * )
static

◆ pygpu_state_depth_test_set()

static PyObject * pygpu_state_depth_test_set ( PyObject * ,
PyObject * value )
static

◆ pygpu_state_face_culling_set()

static PyObject * pygpu_state_face_culling_set ( PyObject * ,
PyObject * value )
static

◆ pygpu_state_front_facing_set()

static PyObject * pygpu_state_front_facing_set ( PyObject * ,
PyObject * value )
static

◆ pygpu_state_line_width_get()

static PyObject * pygpu_state_line_width_get ( PyObject * )
static

Definition at line 374 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, and GPU_line_width_get().

◆ pygpu_state_line_width_set()

static PyObject * pygpu_state_line_width_set ( PyObject * ,
PyObject * value )
static

Definition at line 355 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, float, and GPU_line_width().

◆ pygpu_state_point_size_set()

static PyObject * pygpu_state_point_size_set ( PyObject * ,
PyObject * value )
static

Definition at line 391 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, float, and GPU_point_size().

◆ pygpu_state_program_point_size_set()

static PyObject * pygpu_state_program_point_size_set ( PyObject * ,
PyObject * value )
static

◆ pygpu_state_scissor_get()

static PyObject * pygpu_state_scissor_get ( PyObject * ,
PyObject *  )
static

◆ pygpu_state_scissor_set()

static PyObject * pygpu_state_scissor_set ( PyObject * ,
PyObject * args )
static

Definition at line 280 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, GPU_scissor(), x, and y.

◆ pygpu_state_scissor_test_set()

static PyObject * pygpu_state_scissor_test_set ( PyObject * ,
PyObject * value )
static

◆ pygpu_state_viewport_get()

static PyObject * pygpu_state_viewport_get ( PyObject * ,
PyObject *  )
static

◆ pygpu_state_viewport_set()

static PyObject * pygpu_state_viewport_set ( PyObject * ,
PyObject * args )
static

Definition at line 233 of file gpu_py_state.cc.

References BPYGPU_IS_INIT_OR_ERROR_OBJ, GPU_viewport(), x, and y.

Variable Documentation

◆ pygpu_state__tp_methods

PyMethodDef pygpu_state__tp_methods[]
static

Definition at line 518 of file gpu_py_state.cc.

◆ pygpu_state_blend_items

const PyC_StringEnumItems pygpu_state_blend_items[]
static
Initial value:
= {
{GPU_BLEND_NONE, "NONE"},
{GPU_BLEND_ALPHA, "ALPHA"},
{GPU_BLEND_ALPHA_PREMULT, "ALPHA_PREMULT"},
{GPU_BLEND_ADDITIVE, "ADDITIVE"},
{GPU_BLEND_ADDITIVE_PREMULT, "ADDITIVE_PREMULT"},
{GPU_BLEND_MULTIPLY, "MULTIPLY"},
{GPU_BLEND_SUBTRACT, "SUBTRACT"},
{GPU_BLEND_INVERT, "INVERT"},
{0, nullptr},
}
@ GPU_BLEND_ADDITIVE_PREMULT
Definition GPU_state.hh:90
@ GPU_BLEND_INVERT
Definition GPU_state.hh:95
@ GPU_BLEND_MULTIPLY
Definition GPU_state.hh:91
@ GPU_BLEND_NONE
Definition GPU_state.hh:85
@ GPU_BLEND_ALPHA
Definition GPU_state.hh:87
@ GPU_BLEND_ADDITIVE
Definition GPU_state.hh:89
@ GPU_BLEND_SUBTRACT
Definition GPU_state.hh:92
@ GPU_BLEND_ALPHA_PREMULT
Definition GPU_state.hh:88

Definition at line 30 of file gpu_py_state.cc.

Referenced by pygpu_state_blend_get(), and pygpu_state_blend_set().

◆ pygpu_state_depthtest_items

const PyC_StringEnumItems pygpu_state_depthtest_items[]
static
Initial value:
= {
{GPU_DEPTH_NONE, "NONE"},
{GPU_DEPTH_ALWAYS, "ALWAYS"},
{GPU_DEPTH_LESS, "LESS"},
{GPU_DEPTH_LESS_EQUAL, "LESS_EQUAL"},
{GPU_DEPTH_EQUAL, "EQUAL"},
{GPU_DEPTH_GREATER, "GREATER"},
{GPU_DEPTH_GREATER_EQUAL, "GREATER_EQUAL"},
{0, nullptr},
}
@ GPU_DEPTH_GREATER
Definition GPU_state.hh:113
@ GPU_DEPTH_EQUAL
Definition GPU_state.hh:112
@ GPU_DEPTH_ALWAYS
Definition GPU_state.hh:109
@ GPU_DEPTH_GREATER_EQUAL
Definition GPU_state.hh:114
@ GPU_DEPTH_LESS
Definition GPU_state.hh:110
@ GPU_DEPTH_LESS_EQUAL
Definition GPU_state.hh:111
@ GPU_DEPTH_NONE
Definition GPU_state.hh:108

Definition at line 48 of file gpu_py_state.cc.

Referenced by pygpu_state_depth_test_get(), and pygpu_state_depth_test_set().

◆ pygpu_state_faceculling_items

const PyC_StringEnumItems pygpu_state_faceculling_items[]
static
Initial value:
= {
{GPU_CULL_NONE, "NONE"},
{GPU_CULL_FRONT, "FRONT"},
{GPU_CULL_BACK, "BACK"},
{0, nullptr},
}
@ GPU_CULL_FRONT
Definition GPU_state.hh:134
@ GPU_CULL_NONE
Definition GPU_state.hh:133
@ GPU_CULL_BACK
Definition GPU_state.hh:135

Definition at line 59 of file gpu_py_state.cc.

Referenced by pygpu_state_face_culling_set().

◆ pygpu_state_module_def

PyModuleDef pygpu_state_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"gpu.state",
pygpu_state__tp_doc,
0,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef pygpu_state__tp_methods[]

Definition at line 605 of file gpu_py_state.cc.

Referenced by bpygpu_state_init().