rendlib/include/rendlib.h

22 lines
453 B
C
Raw Permalink Normal View History

#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