Move shaders declaration to shaders.h

This commit is contained in:
Abdelrahman Said 2024-08-18 22:18:12 +01:00
parent ec98a033eb
commit 760d9b6b9c
2 changed files with 7 additions and 6 deletions

View File

@ -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,

View File

@ -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