UI added
This commit is contained in:
parent
7d16b704b5
commit
1c63e8f417
1 changed files with 9 additions and 2 deletions
11
main.cc
11
main.cc
|
@ -142,6 +142,15 @@ void T_Main::handleCapture( )
|
|||
|
||||
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( )
|
||||
|
@ -151,8 +160,6 @@ void T_Main::render( )
|
|||
glClearColor( 1 , 0 , 1 , 1 );
|
||||
glClear( GL_COLOR_BUFFER_BIT );
|
||||
|
||||
// FIXME draw the fuck
|
||||
//project->render( );
|
||||
if ( program->activate( ) ) {
|
||||
enum {
|
||||
U_TIME = 0 ,
|
||||
|
|
Loading…
Reference in a new issue