2024-10-07 22:15:42 +00:00
|
|
|
#ifndef RENDLIB_H
|
|
|
|
#define RENDLIB_H
|
|
|
|
|
|
|
|
enum errs {
|
|
|
|
err_glfw_init = -1,
|
|
|
|
err_glfw_win = -2,
|
|
|
|
err_glew_init = -3,
|
|
|
|
err_shaders_init = -4,
|
|
|
|
};
|
|
|
|
|
2024-10-08 21:36:14 +00:00
|
|
|
extern struct camera *ac;
|
2024-10-07 22:15:42 +00:00
|
|
|
extern struct object *objects;
|
2024-10-08 21:36:14 +00:00
|
|
|
|
|
|
|
extern void (*keyboard_probe)(int key, int scancode, int action, int mods);
|
|
|
|
extern void (*mouse_probe)(double x, double y);
|
|
|
|
extern void (*update_probe)(void);
|
|
|
|
|
2024-10-07 22:15:42 +00:00
|
|
|
int rendlib_start_window(int argc, char *argv[]);
|
|
|
|
int rendlib_render(void);
|
|
|
|
|
|
|
|
#endif
|