Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_draw.h
| Show All 39 Lines | |||||
| struct Image; | struct Image; | ||||
| struct ImageUser; | struct ImageUser; | ||||
| struct MTFace; | struct MTFace; | ||||
| struct Object; | struct Object; | ||||
| struct Scene; | struct Scene; | ||||
| struct View3D; | struct View3D; | ||||
| struct RegionView3D; | struct RegionView3D; | ||||
| struct SmokeModifierData; | struct SmokeModifierData; | ||||
| 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. */ | ||||
| /* 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 | ||||
| * - this is called when starting Blender, for opengl rendering, | * - this is called when starting Blender, for opengl rendering, | ||||
| * and for switching back from the game engine for example. */ | * and for switching back from the game engine for example. */ | ||||
| void GPU_state_init(void); | void GPU_state_init(void); | ||||
| /* 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_enable_material returns 0 if drawing should be skipped | * GPU_enable_material 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 Object *ob, bool glsl, bool *do_alpha_after); | struct Scene *scene, struct Object *ob, bool glsl, bool *do_alpha_after, struct DupliObject *dob); | ||||
| void GPU_end_object_materials(void); | void GPU_end_object_materials(void); | ||||
| int GPU_enable_material(int nr, void *attribs); | int GPU_enable_material(int nr, void *attribs); | ||||
| void GPU_disable_material(void); | void GPU_disable_material(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); | ||||
| ▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines | |||||