src/video/cocoa_v.h
branchnoai
changeset 9722 ebf0ece7d8f6
parent 9721 9a27928bcd5e
child 9723 eee46cb39750
equal deleted inserted replaced
9721:9a27928bcd5e 9722:ebf0ece7d8f6
     1 /* $Id$ */
       
     2 
       
     3 #ifndef VIDEO_COCOA_H
       
     4 #define VIDEO_COCOA_H
       
     5 
       
     6 #include "video_driver.hpp"
       
     7 
       
     8 class VideoDriver_Cocoa: public VideoDriver {
       
     9 public:
       
    10 	/* virtual */ const char *Start(const char * const *param);
       
    11 
       
    12 	/* virtual */ void Stop();
       
    13 
       
    14 	/* virtual */ void MakeDirty(int left, int top, int width, int height);
       
    15 
       
    16 	/* virtual */ void MainLoop();
       
    17 
       
    18 	/* virtual */ bool ChangeResolution(int w, int h);
       
    19 
       
    20 	/* virtual */ void ToggleFullscreen(bool fullscreen);
       
    21 };
       
    22 
       
    23 class FVideoDriver_Cocoa: public VideoDriverFactory<FVideoDriver_Cocoa> {
       
    24 public:
       
    25 	static const int priority = 10;
       
    26 	/* virtual */ const char *GetName() { return "cocoa"; }
       
    27 	/* virtual */ const char *GetDescription() { return "Cocoa Video Driver"; }
       
    28 	/* virtual */ Driver *CreateInstance() { return new VideoDriver_Cocoa(); }
       
    29 };
       
    30 
       
    31 #endif /* VIDEO_COCOA_H */