Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/intern/gpu_codegen.c
| Context not available. | |||||
| * Convert material node-trees to GLSL. | * Convert material node-trees to GLSL. | ||||
| */ | */ | ||||
| #include "GL/glew.h" | #include "GPU_glew.h" | ||||
| #include "MEM_guardedalloc.h" | #include "MEM_guardedalloc.h" | ||||
| Context not available. | |||||
| return (GPUFunction*)BLI_ghash_lookup(FUNCTION_HASH, (void *)name); | return (GPUFunction*)BLI_ghash_lookup(FUNCTION_HASH, (void *)name); | ||||
| } | } | ||||
| void GPU_codegen_init(void) | void gpu_codegen_init(void) | ||||
| { | { | ||||
| GPU_code_generate_glsl_lib(); | GPU_code_generate_glsl_lib(); | ||||
| } | } | ||||
| void GPU_codegen_exit(void) | void gpu_codegen_exit(void) | ||||
| { | { | ||||
| extern Material defmaterial; // render module abuse... | extern Material defmaterial; // render module abuse... | ||||
| Context not available. | |||||