diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-08-13 16:30:29 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-08-14 00:01:18 +0300 |
commit | 77b39bbaa0c796b936f8691c1431f467d4f39981 (patch) | |
tree | 7ca96767ca82b7138eb58577ddd811b7aaac7a9f /source/blender/gpu/GPU_material.h | |
parent | 822de6e9e1b87e2ed3571e7166281fa622c28c02 (diff) |
Cleanup: Rename GPU_* functions to make more sense
* Remove GPU_link_changed which is unused.
* Remove all GPU link function that are not used anymore.
* GPU_uniform_buffer is now GPU_uniform.
* GPU_texture_ramp is now GPU_color_band.
* GPU_uniform is now GPU_constant.
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r-- | source/blender/gpu/GPU_material.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index 6b0296361ec..5bbe9d6d904 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -224,16 +224,11 @@ typedef enum GPUDynamicType { } GPUDynamicType; GPUNodeLink *GPU_attribute(CustomDataType type, const char *name); +GPUNodeLink *GPU_constant(float *num); GPUNodeLink *GPU_uniform(float *num); -GPUNodeLink *GPU_dynamic_uniform(float *num, GPUDynamicType dynamictype, void *data); -GPUNodeLink *GPU_uniform_buffer(float *num, GPUType gputype); GPUNodeLink *GPU_image(struct Image *ima, struct ImageUser *iuser, bool is_data); -GPUNodeLink *GPU_cube_map(struct Image *ima, struct ImageUser *iuser, bool is_data); -GPUNodeLink *GPU_image_preview(struct PreviewImage *prv); -GPUNodeLink *GPU_texture_ramp(GPUMaterial *mat, int size, float *pixels, float *layer); -GPUNodeLink *GPU_dynamic_texture(struct GPUTexture *tex, GPUDynamicType dynamictype, void *data); +GPUNodeLink *GPU_color_band(GPUMaterial *mat, int size, float *pixels, float *layer); GPUNodeLink *GPU_builtin(GPUBuiltin 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, ...); |