This commit is contained in:
Emmanuel BENOîT 2017-09-30 12:25:24 +02:00
parent 7d16b704b5
commit 1c63e8f417

11
main.cc
View file

@ -142,6 +142,15 @@ void T_Main::handleCapture( )
void T_Main::makeUI( ) void T_Main::makeUI( )
{ {
auto const& dspSize( ImGui::GetIO( ).DisplaySize );
ImGui::SetNextWindowSize( ImVec2( 300 , dspSize.y ) ,
ImGuiSetCond_Once );
ImGui::SetNextWindowPos( ImVec2( ) , ImGuiSetCond_Once );
ImGui::Begin( "Yay! Demo!" );
camera.makeUI( );
ImGui::End( );
} }
void T_Main::render( ) void T_Main::render( )
@ -151,8 +160,6 @@ void T_Main::render( )
glClearColor( 1 , 0 , 1 , 1 ); glClearColor( 1 , 0 , 1 , 1 );
glClear( GL_COLOR_BUFFER_BIT ); glClear( GL_COLOR_BUFFER_BIT );
// FIXME draw the fuck
//project->render( );
if ( program->activate( ) ) { if ( program->activate( ) ) {
enum { enum {
U_TIME = 0 , U_TIME = 0 ,