Blender V4.3
gpu_py_select.cc File Reference
#include <Python.h>
#include "BLI_utildefines.h"
#include "../generic/py_capi_utils.hh"
#include "GPU_select.hh"
#include "gpu_py.hh"
#include "gpu_py_select.hh"

Go to the source code of this file.

Functions

Methods
 PyDoc_STRVAR (pygpu_select_load_id_doc, ".. function:: load_id(id)\n" "\n" " Set the selection ID.\n" "\n" " :arg id: Number (32-bit uint).\n" " :type select: int\n")
 
static PyObject * pygpu_select_load_id (PyObject *, PyObject *value)
 

Module

static PyMethodDef pygpu_select__tp_methods []
 
static PyModuleDef pygpu_select_module_def
 
 PyDoc_STRVAR (pygpu_select__tp_doc, "This module provides access to selection.")
 
PyObject * bpygpu_select_init ()
 

Detailed Description

This file defines the gpu.select API.

Note
Currently only used for gizmo selection, will need to add begin/end and a way to access the hits.
  • Use bpygpu_ for local API.
  • Use BPyGPU for public API.

Definition in file gpu_py_select.cc.

Function Documentation

◆ bpygpu_select_init()

PyObject * bpygpu_select_init ( )

Definition at line 81 of file gpu_py_select.cc.

References pygpu_select_module_def.

Referenced by BPyInit_gpu().

◆ PyDoc_STRVAR() [1/2]

PyDoc_STRVAR ( pygpu_select__tp_doc ,
"This module provides access to selection."  )

◆ PyDoc_STRVAR() [2/2]

PyDoc_STRVAR ( pygpu_select_load_id_doc ,
".. function:: load_id(id)\n" "\n" " Set the selection ID.\n" "\n" " :arg id: Number (32-bit uint).\n" " :type select: int\n"  )

◆ pygpu_select_load_id()

static PyObject * pygpu_select_load_id ( PyObject * ,
PyObject * value )
static

Variable Documentation

◆ pygpu_select__tp_methods

PyMethodDef pygpu_select__tp_methods[]
static
Initial value:
= {
{"load_id", (PyCFunction)pygpu_select_load_id, METH_O, pygpu_select_load_id_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * pygpu_select_load_id(PyObject *, PyObject *value)

Definition at line 59 of file gpu_py_select.cc.

◆ pygpu_select_module_def

PyModuleDef pygpu_select_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"gpu.select",
pygpu_select__tp_doc,
0,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef pygpu_select__tp_methods[]

Definition at line 69 of file gpu_py_select.cc.

Referenced by bpygpu_select_init().