Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_draw.h
| Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
| void GPU_create_smoke(struct SmokeModifierData *smd, int highres); | void GPU_create_smoke(struct SmokeModifierData *smd, int highres); | ||||
| void GPU_create_smoke_coba_field(struct SmokeModifierData *smd); | void GPU_create_smoke_coba_field(struct SmokeModifierData *smd); | ||||
| void GPU_create_smoke_velocity(struct SmokeModifierData *smd); | void GPU_create_smoke_velocity(struct SmokeModifierData *smd); | ||||
| /* Delayed free of OpenGL buffers by main thread */ | /* Delayed free of OpenGL buffers by main thread */ | ||||
| void GPU_free_unused_buffers(struct Main *bmain); | void GPU_free_unused_buffers(struct Main *bmain); | ||||
| /* utilities */ | /* utilities */ | ||||
| void GPU_select_index_set(int index); | |||||
| void GPU_select_index_get(int index, int *r_col); | |||||
| int GPU_select_to_index(unsigned int col); | |||||
| void GPU_select_to_index_array(unsigned int *col, const unsigned int size); | |||||
| typedef enum eGPUAttrMask { | typedef enum eGPUAttrMask { | ||||
| GPU_DEPTH_BUFFER_BIT = (1 << 0), | GPU_DEPTH_BUFFER_BIT = (1 << 0), | ||||
| GPU_ENABLE_BIT = (1 << 1), | GPU_ENABLE_BIT = (1 << 1), | ||||
| GPU_SCISSOR_BIT = (1 << 2), | GPU_SCISSOR_BIT = (1 << 2), | ||||
| GPU_VIEWPORT_BIT = (1 << 3), | GPU_VIEWPORT_BIT = (1 << 3), | ||||
| GPU_BLEND_BIT = (1 << 4), | GPU_BLEND_BIT = (1 << 4), | ||||
| } eGPUAttrMask; | } eGPUAttrMask; | ||||
| void gpuPushAttr(eGPUAttrMask mask); | void gpuPushAttr(eGPUAttrMask mask); | ||||
| void gpuPopAttr(void); | void gpuPopAttr(void); | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif | #endif | ||||