Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_material.h
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
| struct ImageUser; | struct ImageUser; | ||||
| struct Material; | struct Material; | ||||
| struct Object; | struct Object; | ||||
| struct Lamp; | struct Lamp; | ||||
| struct Image; | struct Image; | ||||
| struct bNode; | struct bNode; | ||||
| struct LinkNode; | struct LinkNode; | ||||
| struct Scene; | struct Scene; | ||||
| struct SceneRenderLayer; | |||||
| struct GPUVertexAttribs; | struct GPUVertexAttribs; | ||||
| struct GPUNode; | struct GPUNode; | ||||
| struct GPUNodeLink; | struct GPUNodeLink; | ||||
| struct GPUNodeStack; | struct GPUNodeStack; | ||||
| struct GPUMaterial; | struct GPUMaterial; | ||||
| struct GPUTexture; | struct GPUTexture; | ||||
| struct GPULamp; | struct GPULamp; | ||||
| struct PreviewImage; | struct PreviewImage; | ||||
| ▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
| /* High level functions to create and use GPU materials */ | /* High level functions to create and use GPU materials */ | ||||
| GPUMaterial *GPU_material_from_blender(struct Scene *scene, struct Material *ma); | GPUMaterial *GPU_material_from_blender(struct Scene *scene, struct Material *ma); | ||||
| GPUMaterial *GPU_material_matcap(struct Scene *scene, struct Material *ma); | GPUMaterial *GPU_material_matcap(struct Scene *scene, struct Material *ma); | ||||
| void GPU_material_free(struct Material *ma); | void GPU_material_free(struct Material *ma); | ||||
| void GPU_materials_free(void); | void GPU_materials_free(void); | ||||
| bool GPU_lamp_override_visible(GPULamp *lamp, struct SceneRenderLayer *srl, struct Material *ma); | |||||
| void GPU_material_bind(GPUMaterial *material, int oblay, int viewlay, double time, int mipmap, float viewmat[4][4], float viewinv[4][4]); | void GPU_material_bind(GPUMaterial *material, int oblay, int viewlay, double time, int mipmap, float viewmat[4][4], float viewinv[4][4]); | ||||
| void GPU_material_bind_uniforms(GPUMaterial *material, float obmat[4][4], float obcol[4], float autobumpscale); | void GPU_material_bind_uniforms(GPUMaterial *material, float obmat[4][4], float obcol[4], float autobumpscale); | ||||
| void GPU_material_unbind(GPUMaterial *material); | void GPU_material_unbind(GPUMaterial *material); | ||||
| int GPU_material_bound(GPUMaterial *material); | int GPU_material_bound(GPUMaterial *material); | ||||
| struct Scene *GPU_material_scene(GPUMaterial *material); | struct Scene *GPU_material_scene(GPUMaterial *material); | ||||
| void GPU_material_vertex_attributes(GPUMaterial *material, | void GPU_material_vertex_attributes(GPUMaterial *material, | ||||
| struct GPUVertexAttribs *attrib); | struct GPUVertexAttribs *attrib); | ||||
| ▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines | |||||