Move shaders declaration to shaders.h
This commit is contained in:
		| @@ -3,7 +3,6 @@ | |||||||
| #include "mem_utils.h" | #include "mem_utils.h" | ||||||
| #include "obj.h" | #include "obj.h" | ||||||
| #include "render.h" | #include "render.h" | ||||||
| #include "shader.h" |  | ||||||
| #include "shaders.h" | #include "shaders.h" | ||||||
| #include <stdbool.h> | #include <stdbool.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| @@ -13,11 +12,6 @@ | |||||||
| #define SIZE 1200 | #define SIZE 1200 | ||||||
| #define RESOURCE(NAME) "resources/" NAME | #define RESOURCE(NAME) "resources/" NAME | ||||||
|  |  | ||||||
| extern ShaderID perspective_phong; |  | ||||||
| extern ShaderID perspective_albedo; |  | ||||||
| extern ShaderID orthographic_phong; |  | ||||||
| extern ShaderID orthographic_albedo; |  | ||||||
|  |  | ||||||
| enum { | enum { | ||||||
|   TINY_EXIT_SUCCESS, |   TINY_EXIT_SUCCESS, | ||||||
|   TINY_EXIT_ARENA_INIT_FAILED, |   TINY_EXIT_ARENA_INIT_FAILED, | ||||||
|   | |||||||
| @@ -1,6 +1,13 @@ | |||||||
| #ifndef SHADERS_H | #ifndef SHADERS_H | ||||||
| #define SHADERS_H | #define SHADERS_H | ||||||
|  |  | ||||||
|  | #include "shader.h" | ||||||
|  |  | ||||||
|  | extern ShaderID perspective_phong; | ||||||
|  | extern ShaderID perspective_albedo; | ||||||
|  | extern ShaderID orthographic_phong; | ||||||
|  | extern ShaderID orthographic_albedo; | ||||||
|  |  | ||||||
| void load_shaders(void); | void load_shaders(void); | ||||||
|  |  | ||||||
| #endif // SHADERS_H | #endif // SHADERS_H | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user