Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_draw.h
| Show All 35 Lines | |||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| struct ImBuf; | struct ImBuf; | ||||
| struct Image; | struct Image; | ||||
| struct ImageUser; | struct ImageUser; | ||||
| struct Object; | struct Object; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneLayer; | struct ViewLayer; | ||||
| struct View3D; | struct View3D; | ||||
| struct RegionView3D; | struct RegionView3D; | ||||
| struct SmokeModifierData; | struct SmokeModifierData; | ||||
| struct DupliObject; | struct DupliObject; | ||||
| /* OpenGL drawing functions related to shading. These are also | /* OpenGL drawing functions related to shading. These are also | ||||
| * shared with the game engine, where there were previously | * shared with the game engine, where there were previously | ||||
| * duplicates of some of these functions. */ | * duplicates of some of these functions. */ | ||||
| Show All 16 Lines | |||||
| /* Material drawing | /* Material drawing | ||||
| * - first the state is initialized by a particular object and | * - first the state is initialized by a particular object and | ||||
| * it's materials | * it's materials | ||||
| * - after this, materials can be quickly enabled by their number, | * - after this, materials can be quickly enabled by their number, | ||||
| * GPU_object_material_bind returns 0 if drawing should be skipped | * GPU_object_material_bind returns 0 if drawing should be skipped | ||||
| * - after drawing, the material must be disabled again */ | * - after drawing, the material must be disabled again */ | ||||
| void GPU_begin_object_materials(struct View3D *v3d, struct RegionView3D *rv3d, | void GPU_begin_object_materials(struct View3D *v3d, struct RegionView3D *rv3d, | ||||
| struct Scene *scene, struct SceneLayer *scene_layer, | struct Scene *scene, struct ViewLayer *view_layer, | ||||
| struct Object *ob, bool glsl, bool *do_alpha_after); | struct Object *ob, bool glsl, bool *do_alpha_after); | ||||
| void GPU_end_object_materials(void); | void GPU_end_object_materials(void); | ||||
| bool GPU_object_materials_check(void); | bool GPU_object_materials_check(void); | ||||
| int GPU_object_material_bind(int nr, void *attribs); | int GPU_object_material_bind(int nr, void *attribs); | ||||
| void GPU_object_material_unbind(void); | void GPU_object_material_unbind(void); | ||||
| int GPU_object_material_visible(int nr, void *attribs); | int GPU_object_material_visible(int nr, void *attribs); | ||||
| void GPU_begin_dupli_object(struct DupliObject *dob); | void GPU_begin_dupli_object(struct DupliObject *dob); | ||||
| void GPU_end_dupli_object(void); | void GPU_end_dupli_object(void); | ||||
| void GPU_material_diffuse_get(int nr, float diff[4]); | void GPU_material_diffuse_get(int nr, float diff[4]); | ||||
| bool GPU_material_use_matcaps_get(void); | bool GPU_material_use_matcaps_get(void); | ||||
| void GPU_set_material_alpha_blend(int alphablend); | void GPU_set_material_alpha_blend(int alphablend); | ||||
| int GPU_get_material_alpha_blend(void); | int GPU_get_material_alpha_blend(void); | ||||
| /* Lights | /* Lights | ||||
| * - returns how many lights were enabled | * - returns how many lights were enabled | ||||
| * - this affects fixed functions materials and texface, not glsl */ | * - this affects fixed functions materials and texface, not glsl */ | ||||
| int GPU_default_lights(void); | int GPU_default_lights(void); | ||||
| int GPU_scene_object_lights( | int GPU_scene_object_lights( | ||||
| struct SceneLayer *scene_layer, float viewmat[4][4], int ortho); | struct ViewLayer *view_layer, float viewmat[4][4], int ortho); | ||||
| /* Text render | /* Text render | ||||
| * - based on moving uv coordinates */ | * - based on moving uv coordinates */ | ||||
| void GPU_render_text( | void GPU_render_text( | ||||
| int mode, const char *textstr, int textlen, unsigned int *col, | int mode, const char *textstr, int textlen, unsigned int *col, | ||||
| const float *v_quad[4], const float *uv_quad[4], | const float *v_quad[4], const float *uv_quad[4], | ||||
| int glattrib); | int glattrib); | ||||
| ▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines | |||||