Changeset 105 for trunk/src/video.h


Ignore:
Timestamp:
Aug 14, 2010, 11:15:38 PM (11 years ago)
Author:
sam
Message:

Create a helper class for easy scene setup. Highly reduces the number
of includes in a few source files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.h

    r100 r105  
    77// The Video interface
    88// -------------------
    9 // Not sure yet whether this should exist.
     9// Helper GL functions to set up the scene.
    1010//
    1111
     
    1616{
    1717public:
    18     virtual int GetWidth() const = 0;
    19     virtual int GetHeight() const = 0;
    20     virtual void PreRender() = 0;
    21     virtual void PostRender(float milliseconds) = 0;
    22     virtual void FullScreen() = 0;
     18    static void Setup(int width, int height);
     19    static void Clear();
    2320};
    2421
Note: See TracChangeset for help on using the changeset viewer.