2024-10-07 22:15:42 +00:00
|
|
|
#ifndef RENDLIB_H
|
|
|
|
#define RENDLIB_H
|
|
|
|
|
2024-10-08 15:27:09 +00:00
|
|
|
#define RENDLIB_INPUT_ESC 0b00000001
|
|
|
|
#define RENDLIB_INPUT_REL 0b00000010
|
|
|
|
#define RENDLIB_INPUT_LEFT 0b00000100
|
|
|
|
#define RENDLIB_INPUT_RIGHT 0b00001000
|
|
|
|
#define RENDLIB_INPUT_BACKW 0b00010000
|
|
|
|
#define RENDLIB_INPUT_FORW 0b00100000
|
|
|
|
|
2024-10-07 22:15:42 +00:00
|
|
|
enum errs {
|
|
|
|
err_glfw_init = -1,
|
|
|
|
err_glfw_win = -2,
|
|
|
|
err_glew_init = -3,
|
|
|
|
err_shaders_init = -4,
|
|
|
|
};
|
|
|
|
|
2024-10-08 17:43:14 +00:00
|
|
|
extern struct camera *active_camera;
|
2024-10-07 22:15:42 +00:00
|
|
|
extern struct object *objects;
|
|
|
|
int rendlib_start_window(int argc, char *argv[]);
|
|
|
|
int rendlib_render(void);
|
|
|
|
|
|
|
|
#endif
|