Make Surfaces Float
This commit is contained in:
+16
-1
@@ -56,6 +56,17 @@ float lerp(float a, float b, float amount)
|
||||
return a + (b - a) * amount;
|
||||
}
|
||||
|
||||
static void DebugPrint(const char *message)
|
||||
{
|
||||
if (message == nullptr)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
printf("[SM64] %s\n", message);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
int main( void )
|
||||
{
|
||||
size_t romSize;
|
||||
@@ -73,9 +84,13 @@ int main( void )
|
||||
sm64_global_terminate();
|
||||
sm64_global_init( rom, texture );
|
||||
sm64_audio_init(rom);
|
||||
|
||||
// sm64_register_debug_print_function(DebugPrint);
|
||||
|
||||
sm64_static_surfaces_load( surfaces, surfaces_count );
|
||||
int32_t marioId = sm64_mario_create( 0, 1000, 0 );
|
||||
|
||||
printf("MarioID: %i\n", marioId);
|
||||
free( rom );
|
||||
|
||||
RenderState renderState;
|
||||
@@ -94,7 +109,7 @@ int main( void )
|
||||
renderer = &gl20_renderer;
|
||||
#endif
|
||||
|
||||
context_init( "libsm64", 800, 600, major, minor );
|
||||
context_init( "libsm64", 1280, 720, major, minor );
|
||||
renderer->init( &renderState, texture );
|
||||
|
||||
struct SM64MarioInputs marioInputs;
|
||||
|
||||
Reference in New Issue
Block a user