Move shaders declaration to shaders.h
This commit is contained in:
parent
ec98a033eb
commit
760d9b6b9c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user