rendlib/include/rendlib.h
Kevin Jerebica bca01fe3cd feat: add probe functions for user customization
custom probes inside the library allow the user developer
to run useful code along the renderer loop
2024-10-08 23:36:14 +02:00

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