Kevin Jerebica
bca01fe3cd
custom probes inside the library allow the user developer to run useful code along the renderer loop
22 lines
453 B
C
22 lines
453 B
C
#ifndef RENDLIB_H
|
|
#define RENDLIB_H
|
|
|
|
enum errs {
|
|
err_glfw_init = -1,
|
|
err_glfw_win = -2,
|
|
err_glew_init = -3,
|
|
err_shaders_init = -4,
|
|
};
|
|
|
|
extern struct camera *ac;
|
|
extern struct object *objects;
|
|
|
|
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);
|
|
|
|
int rendlib_start_window(int argc, char *argv[]);
|
|
int rendlib_render(void);
|
|
|
|
#endif
|