Merge: doc -> main
This commit is contained in:
45
src/main.h
45
src/main.h
@@ -1,4 +1,11 @@
|
||||
typedef const void * window_t;
|
||||
typedef unsigned int id_t;
|
||||
typedef void * mesh_t;
|
||||
typedef float * quat_t;
|
||||
typedef float * mat4_t;
|
||||
|
||||
typedef float narray_float_t[];
|
||||
typedef unsigned char narray_u8_t[];
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -13,40 +20,40 @@ int is_open_window( window_t window );
|
||||
|
||||
void close_window( window_t window );
|
||||
|
||||
void * create_mesh( float * mesh );
|
||||
mesh_t create_mesh( narray_float_t mesh );
|
||||
|
||||
void destroy_mesh( void * p );
|
||||
void destroy_mesh( mesh_t p );
|
||||
|
||||
void draw_mesh( void * p );
|
||||
void draw_mesh( mesh_t p );
|
||||
|
||||
void set_color( unsigned char, unsigned char, unsigned char );
|
||||
void set_clean_color_context( unsigned char, unsigned char, unsigned char );
|
||||
|
||||
void draw_color( void );
|
||||
void clean_context( void );
|
||||
|
||||
void destroy_shader( unsigned int shader );
|
||||
void destroy_shader( id_t shader );
|
||||
|
||||
unsigned int create_shader( void );
|
||||
id_t create_shader( void );
|
||||
|
||||
void use_shader( unsigned int program );
|
||||
void use_shader( id_t program );
|
||||
|
||||
unsigned char gload_program( unsigned int program, const char * src, unsigned int type );
|
||||
unsigned char gload_program( id_t program, const char * src, unsigned int type );
|
||||
|
||||
void gload_float( unsigned int program, char * var, float f );
|
||||
void gload_float( id_t program, char * var, float f );
|
||||
|
||||
void gload_mat4( unsigned int program, char * var, float * m );
|
||||
void gload_mat4( id_t program, char * var, mat4_t m );
|
||||
|
||||
void load_fix_matrix( unsigned int shader, float ratio );
|
||||
void load_fix_matrix( id_t shader, float ratio );
|
||||
|
||||
void load_mdl_matrix( unsigned int shader, unsigned char i, unsigned char c );
|
||||
void load_mdl_matrix( id_t shader, unsigned char i, unsigned char c );
|
||||
|
||||
void load_rot_matrix( unsigned int shader, float * q );
|
||||
void load_rot_matrix( id_t shader, quat_t q );
|
||||
|
||||
unsigned int config_texture( unsigned short type );
|
||||
id_t config_texture( unsigned short type );
|
||||
|
||||
void use_texture( unsigned int texture );
|
||||
void use_texture( id_t texture );
|
||||
|
||||
void destroy_texture( unsigned int texture );
|
||||
void destroy_texture( id_t texture );
|
||||
|
||||
unsigned int create_palette_texture( const unsigned char * colors );
|
||||
id_t create_palette_texture( const narray_u8_t colors );
|
||||
|
||||
float * poll_input( window_t window );
|
||||
quat_t poll_input( window_t window );
|
||||
|
||||
Reference in New Issue
Block a user