Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6522 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Jan 18, 2006, 2:20:13 AM (18 years ago)
Author:
bensch
Message:

trunk: switch to WireFrame with
Shell → GraphicsEngine wireframe

Location:
trunk/src/lib/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r6441 r6522  
    3636#include "texture.h"
    3737
     38#include "shell_command.h"
     39
    3840#ifdef __WIN32__
    3941 #include "class_list.h"
     
    4143#endif
    4244using namespace std;
     45
     46SHELL_COMMAND(wireframe, GraphicsEngine, wireframe);
    4347
    4448/**
     
    468472}
    469473
     474void GraphicsEngine::wireframe()
     475{
     476  glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
     477}
     478
    470479/**
    471480 *  stores the GL_matrices
  • trunk/src/lib/graphics/graphics_engine.h

    r6142 r6522  
    6060    static void enter2DMode();
    6161    static void leave2DMode();
     62
     63    void wireframe();
    6264
    6365    static void storeMatrices();
Note: See TracChangeset for help on using the changeset viewer.