Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_draw.h
| Show All 26 Lines | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct ImBuf; | struct ImBuf; | ||||
| struct Image; | struct Image; | ||||
| struct ImageUser; | struct ImageUser; | ||||
| struct Main; | struct Main; | ||||
| struct SmokeModifierData; | struct MantaModifierData; | ||||
| #include "DNA_object_enums.h" | #include "DNA_object_enums.h" | ||||
| /* OpenGL drawing functions related to shading. */ | /* OpenGL drawing functions related to shading. */ | ||||
| /* Initialize | /* Initialize | ||||
| * - sets the default Blender opengl state, if in doubt, check | * - sets the default Blender opengl state, if in doubt, check | ||||
| * the contents of this function | * the contents of this function | ||||
| Show All 35 Lines | void GPU_create_gl_tex_compressed(unsigned int *bind, | ||||
| struct ImBuf *ibuf); | struct ImBuf *ibuf); | ||||
| bool GPU_upload_dxt_texture(struct ImBuf *ibuf, bool use_srgb); | bool GPU_upload_dxt_texture(struct ImBuf *ibuf, bool use_srgb); | ||||
| void GPU_free_image(struct Image *ima); | void GPU_free_image(struct Image *ima); | ||||
| void GPU_free_images(struct Main *bmain); | void GPU_free_images(struct Main *bmain); | ||||
| void GPU_free_images_anim(struct Main *bmain); | void GPU_free_images_anim(struct Main *bmain); | ||||
| void GPU_free_images_old(struct Main *bmain); | void GPU_free_images_old(struct Main *bmain); | ||||
| /* smoke drawing functions */ | /* smoke drawing functions */ | ||||
| void GPU_free_smoke(struct SmokeModifierData *smd); | void GPU_free_smoke(struct MantaModifierData *mmd); | ||||
| void GPU_free_smoke_velocity(struct SmokeModifierData *smd); | void GPU_free_smoke_velocity(struct MantaModifierData *mmd); | ||||
| void GPU_create_smoke(struct SmokeModifierData *smd, int highres); | void GPU_create_smoke(struct MantaModifierData *mmd, int highres); | ||||
| void GPU_create_smoke_coba_field(struct SmokeModifierData *smd); | void GPU_create_smoke_coba_field(struct MantaModifierData *mmd); | ||||
| void GPU_create_smoke_velocity(struct SmokeModifierData *smd); | void GPU_create_smoke_velocity(struct MantaModifierData *mmd); | ||||
| /* 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 */ | ||||
| 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), | ||||
| Show All 13 Lines | |||||