Merge: crisel -> main
This commit is contained in:
49
src/main.h
49
src/main.h
@@ -1,3 +1,6 @@
|
||||
#include <GL/glew.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
typedef const void * window_t;
|
||||
typedef unsigned int id_t;
|
||||
typedef void * mesh_t;
|
||||
@@ -12,48 +15,48 @@ enum
|
||||
VERTEX, FRAGMENT
|
||||
};
|
||||
|
||||
window_t init_window( unsigned int w, unsigned int h, const char * name );
|
||||
window_t init_window(unsigned int w, unsigned int h, const char * name);
|
||||
|
||||
void use_window( window_t window );
|
||||
void use_window(window_t window);
|
||||
|
||||
int is_open_window( window_t window );
|
||||
int is_open_window(window_t window);
|
||||
|
||||
void close_window( window_t window );
|
||||
void close_window(window_t window);
|
||||
|
||||
mesh_t create_mesh( narray_float_t mesh );
|
||||
mesh_t create_mesh(narray_float_t mesh);
|
||||
|
||||
void destroy_mesh( mesh_t p );
|
||||
void destroy_mesh(mesh_t p);
|
||||
|
||||
void draw_mesh( mesh_t p );
|
||||
void draw_mesh(mesh_t p);
|
||||
|
||||
void set_clean_color_context( unsigned char, unsigned char, unsigned char );
|
||||
void set_clean_color_context(unsigned char, unsigned char, unsigned char);
|
||||
|
||||
void clean_context( void );
|
||||
void clean_context(void);
|
||||
|
||||
void destroy_shader( id_t shader );
|
||||
void destroy_shader(id_t shader);
|
||||
|
||||
id_t create_shader( void );
|
||||
id_t create_shader(void);
|
||||
|
||||
void use_shader( id_t program );
|
||||
void use_shader(id_t program);
|
||||
|
||||
unsigned char gload_program( id_t program, const char * src, unsigned int type );
|
||||
unsigned char gload_program(id_t program, const char * src, unsigned int type);
|
||||
|
||||
void gload_float( id_t program, char * var, float f );
|
||||
void gload_float(id_t program, char * var, float f);
|
||||
|
||||
void gload_mat4( id_t program, char * var, mat4_t m );
|
||||
void gload_mat4(id_t program, char * var, mat4_t m);
|
||||
|
||||
void load_fix_matrix( id_t shader, float ratio );
|
||||
void load_fix_matrix(id_t shader, float ratio);
|
||||
|
||||
void load_mdl_matrix( id_t shader, unsigned char i, unsigned char c );
|
||||
void load_mdl_matrix(id_t shader, unsigned char i, unsigned char c);
|
||||
|
||||
void load_rot_matrix( id_t shader, quat_t q );
|
||||
void load_rot_matrix(id_t shader, quat_t q);
|
||||
|
||||
id_t config_texture( unsigned short type );
|
||||
id_t config_texture(unsigned short type);
|
||||
|
||||
void use_texture( id_t texture );
|
||||
void use_texture(id_t texture);
|
||||
|
||||
void destroy_texture( id_t texture );
|
||||
void destroy_texture(id_t texture);
|
||||
|
||||
id_t create_palette_texture( const narray_u8_t colors );
|
||||
id_t create_palette_texture(const narray_u8_t colors);
|
||||
|
||||
quat_t poll_input( window_t window );
|
||||
quat_t poll_input(window_t window);
|
||||
|
||||
Reference in New Issue
Block a user