Show
Ignore:
Timestamp:
08/23/10 22:34:43 (21 months ago)
Author:
Carsten
Message:

Added:

  • support for changing the video mode,
  • switching to full-screen display, and
  • parsing the command-line options.

Minor cosmetic enhancements:

  • blanked system mouse cursor in our 3D canvas, and
  • "Initializing Cafu..." message during initialization.

This completes the transfer of features from (old) file Cafu.cpp to the new wx-based code! :-)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cafu/branches/cafu_to_wx/Ca3DE/MainCanvas.cpp

    r125 r126  
    125125    m_GLContext=new wxGLContext(this); 
    126126 
     127    SetCursor(wxCURSOR_BLANK); 
    127128    SetBackgroundStyle(wxBG_STYLE_PAINT); 
    128129} 
     
    504505    if (m_InitState==INIT_REQUIRED) 
    505506    { 
     507        dc.SetBackground(*wxBLACK_BRUSH); 
     508        dc.Clear(); 
     509        dc.SetBackgroundMode(wxTRANSPARENT); 
     510        dc.SetTextForeground(wxColour(255, 200, 0)); 
     511        dc.DrawText("Initializing Cafu...", 10, 40); 
     512 
    506513        // This code is in this place due to a few peculiarities of OpenGL under GTK that do not exist under MSW: 
    507514        //   - An OpenGL context can only be made current with a canvas that is shown on the screen. 
     
    892899            return; 
    893900        } 
     901 
     902        case WXK_F11: 
     903        { 
     904            m_Parent->ShowFullScreen(!m_Parent->IsFullScreen()); 
     905            return; 
     906        } 
    894907    } 
    895908