Blender  V3.3
gpu_py_select.c File Reference
#include <Python.h>
#include "BLI_utildefines.h"
#include "../generic/py_capi_utils.h"
#include "GPU_select.h"
#include "gpu_py_select.h"

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" " :param id: Number (32-bit uint).\n" " :type select: int\n")
 
static PyObject * pygpu_select_load_id (PyObject *UNUSED(self), PyObject *value)
 

Module

static struct 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 (void)
 

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.

Definition in file gpu_py_select.c.

Function Documentation

◆ bpygpu_select_init()

PyObject* bpygpu_select_init ( void  )

Definition at line 66 of file gpu_py_select.c.

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" " :param id: Number (32-bit uint).\n" " :type select: int\n"   
)

◆ pygpu_select_load_id()

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

Definition at line 36 of file gpu_py_select.c.

Variable Documentation

◆ pygpu_select__tp_methods

struct PyMethodDef pygpu_select__tp_methods[]
static
Initial value:
= {
{"load_id", (PyCFunction)pygpu_select_load_id, METH_O, pygpu_select_load_id_doc},
{NULL, NULL, 0, NULL},
}
static PyObject * pygpu_select_load_id(PyObject *UNUSED(self), PyObject *value)
Definition: gpu_py_select.c:36

Definition at line 36 of file gpu_py_select.c.

◆ pygpu_select_module_def

PyModuleDef pygpu_select_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
.m_name = "gpu.select",
.m_doc = pygpu_select__tp_doc,
}
static struct PyMethodDef pygpu_select__tp_methods[]
Definition: gpu_py_select.c:52

Definition at line 59 of file gpu_py_select.c.

Referenced by bpygpu_select_init().