Merge: doc -> main

This commit is contained in:
PedroEdiaz
2024-10-02 13:10:08 -06:00
parent 3c9690a2a7
commit d22daff16d
17 changed files with 363 additions and 163 deletions

View File

@@ -21,16 +21,15 @@ const char * wname = "manigraph: manifold grapher";
int main( void )
{
unsigned int shader, texture;
void * m_cube, *m_axis;
id_t shader, texture;
mesh_t m_cube, m_axis;
window_t window;
if( !( window = init_window( WIDTH, HEIGHT, wname ) ) )
goto error_window;
use_window( window );
set_color( 0x2E, 0x07, 0x3F );
set_clean_color_context( 0x2E, 0x07, 0x3F );
if( !( shader = create_shader() ) )
goto error_shader;
@@ -52,11 +51,12 @@ int main( void )
while( is_open_window( window ) )
{
float * q;
quat_t q;
q=poll_input( window );
load_rot_matrix( shader, q );
draw_color();
clean_context();
load_mdl_matrix( shader, 0, 0 );
draw_mesh( m_axis );