Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_material.h
| Context not available. | |||||
| typedef struct GPUNodeLink GPUNodeLink; | typedef struct GPUNodeLink GPUNodeLink; | ||||
| typedef struct GPUMaterial GPUMaterial; | typedef struct GPUMaterial GPUMaterial; | ||||
| typedef struct GPULamp GPULamp; | typedef struct GPULamp GPULamp; | ||||
| typedef struct GPUParticleInfo GPUParticleInfo; | |||||
| /* Functions to create GPU Materials nodes */ | /* Functions to create GPU Materials nodes */ | ||||
| Context not available. | |||||
| GPU_OBCOLOR = (1 << 6), | GPU_OBCOLOR = (1 << 6), | ||||
| GPU_AUTO_BUMPSCALE = (1 << 7), | GPU_AUTO_BUMPSCALE = (1 << 7), | ||||
| GPU_CAMERA_TEXCO_FACTORS = (1 << 8), | GPU_CAMERA_TEXCO_FACTORS = (1 << 8), | ||||
| GPU_PARTICLE_SCALAR_PROPS = (1 << 9), | |||||
| GPU_PARTICLE_LOCATION = (1 << 10), | |||||
| GPU_PARTICLE_VELOCITY = (1 << 11), | |||||
| GPU_PARTICLE_ANG_VELOCITY = (1 << 12), | |||||
| } GPUBuiltin; | } GPUBuiltin; | ||||
| typedef enum GPUOpenGLBuiltin { | typedef enum GPUOpenGLBuiltin { | ||||
| Context not available. | |||||
| GPUNodeLink *GPU_dynamic_texture(struct GPUTexture *tex, GPUDynamicType dynamictype, void *data); | GPUNodeLink *GPU_dynamic_texture(struct GPUTexture *tex, GPUDynamicType dynamictype, void *data); | ||||
| GPUNodeLink *GPU_builtin(GPUBuiltin builtin); | GPUNodeLink *GPU_builtin(GPUBuiltin builtin); | ||||
| GPUNodeLink *GPU_opengl_builtin(GPUOpenGLBuiltin builtin); | GPUNodeLink *GPU_opengl_builtin(GPUOpenGLBuiltin builtin); | ||||
| void GPU_node_link_set_type(GPUNodeLink *link, GPUType type); | |||||
| bool GPU_link(GPUMaterial *mat, const char *name, ...); | bool GPU_link(GPUMaterial *mat, const char *name, ...); | ||||
| bool GPU_stack_link(GPUMaterial *mat, const char *name, GPUNodeStack *in, GPUNodeStack *out, ...); | bool GPU_stack_link(GPUMaterial *mat, const char *name, GPUNodeStack *in, GPUNodeStack *out, ...); | ||||
| Context not available. | |||||
| bool GPU_lamp_override_visible(GPULamp *lamp, struct SceneRenderLayer *srl, struct Material *ma); | 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], float cameraborder[4], bool scenelock); | void GPU_material_bind(GPUMaterial *material, int oblay, int viewlay, double time, int mipmap, float viewmat[4][4], float viewinv[4][4], float cameraborder[4], bool scenelock); | ||||
| 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, GPUParticleInfo *pi); | ||||
| void GPU_material_unbind(GPUMaterial *material); | void GPU_material_unbind(GPUMaterial *material); | ||||
| bool GPU_material_bound(GPUMaterial *material); | bool GPU_material_bound(GPUMaterial *material); | ||||
| struct Scene *GPU_material_scene(GPUMaterial *material); | struct Scene *GPU_material_scene(GPUMaterial *material); | ||||
| Context not available. | |||||
| void GPU_horizon_update_color(float color[3]); | void GPU_horizon_update_color(float color[3]); | ||||
| void GPU_ambient_update_color(float color[3]); | void GPU_ambient_update_color(float color[3]); | ||||
| typedef struct GPUParticleInfo | |||||
| { | |||||
| float scalprops[4]; | |||||
| float location[3]; | |||||
| float velocity[3]; | |||||
| float angular_velocity[3]; | |||||
| } GPUParticleInfo; | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| Context not available. | |||||