Browse Source

no message

pull/375/head
gzito 9 years ago
parent
commit
ebf4f1fa02
  1. 18
      examples/marmalade_example/main.cpp

18
examples/marmalade_example/main.cpp

@ -15,7 +15,7 @@
int main(int, char**) int main(int, char**)
{ {
// Setup ImGui binding // Setup ImGui binding
ImGui_Marmalade_Init(true); ImGui_Marmalade_Init(true);
// Load Fonts // Load Fonts
// (see extra_fonts/README.txt for more details) // (see extra_fonts/README.txt for more details)
@ -40,12 +40,12 @@ int main(int, char**)
// Main loop // Main loop
while (true) while (true)
{ {
if( s3eDeviceCheckQuitRequest() ) if( s3eDeviceCheckQuitRequest() )
break; break;
s3eKeyboardUpdate() ; s3eKeyboardUpdate() ;
s3ePointerUpdate() ; s3ePointerUpdate() ;
ImGui_Marmalade_NewFrame(); ImGui_Marmalade_NewFrame();
// 1. Show a simple window // 1. Show a simple window
// Tip: if we don't call ImGui::Begin()/ImGui::End() the widgets appears in a window automatically called "Debug" // Tip: if we don't call ImGui::Begin()/ImGui::End() the widgets appears in a window automatically called "Debug"
@ -76,12 +76,12 @@ int main(int, char**)
} }
// Rendering // Rendering
IwGxSetColClear(clear_color.x*255,clear_color.y*255,clear_color.z*255,clear_color.w*255) ; IwGxSetColClear(clear_color.x*255,clear_color.y*255,clear_color.z*255,clear_color.w*255) ;
IwGxClear(); IwGxClear();
ImGui::Render(); ImGui::Render();
IwGxSwapBuffers(); IwGxSwapBuffers();
s3eDeviceYield(0) ; s3eDeviceYield(0) ;
} }
// Cleanup // Cleanup

Loading…
Cancel
Save