Changeset 90 for trunk/src/video.h


Ignore:
Timestamp:
Aug 11, 2010, 5:39:36 PM (11 years ago)
Author:
sam
Message:

Change the Video class into an interface, implemented by SdlVideo and,
soon, GtkVideo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/video.h

    r47 r90  
    11
    22/*
    3  * The video driver
     3 * The video interface
    44 */
    55
     
    77#define __DH_VIDEO_H__
    88
    9 class VideoData;
    10 
    119class Video
    1210{
    1311public:
    14     Video(char const *title, int width, int height);
    15     ~Video();
     12    //Video(char const *title, int width, int height);
     13    //virtual ~Video();
    1614
    17     int GetWidth() const;
    18     int GetHeight() const;
    19     void Clear();
    20     void Refresh(float milliseconds);
    21     void FullScreen();
    22 
    23 private:
    24     VideoData *data;
     15    virtual int GetWidth() const = 0;
     16    virtual int GetHeight() const = 0;
     17    virtual void Clear() = 0;
     18    virtual void Refresh(float milliseconds) = 0;
     19    virtual void FullScreen() = 0;
    2520};
    2621
Note: See TracChangeset for help on using the changeset viewer.