peter1138@2743: /* $Id$ */ bjarni@2736: bjarni@2736: #ifndef VIDEO_COCOA_H bjarni@2736: #define VIDEO_COCOA_H bjarni@2736: peter1138@7666: #include "video_driver.hpp" bjarni@5932: peter1138@7666: class VideoDriver_Cocoa: public VideoDriver { peter1138@7666: public: peter1138@7666: /* virtual */ const char *Start(const char * const *param); peter1138@7666: peter1138@7666: /* virtual */ void Stop(); peter1138@7666: peter1138@7666: /* virtual */ void MakeDirty(int left, int top, int width, int height); peter1138@7666: peter1138@7666: /* virtual */ void MainLoop(); peter1138@7666: peter1138@7666: /* virtual */ bool ChangeResolution(int w, int h); peter1138@7666: peter1138@7666: /* virtual */ void ToggleFullscreen(bool fullscreen); peter1138@7666: }; peter1138@7666: peter1138@7666: class FVideoDriver_Cocoa: public VideoDriverFactory { peter1138@7666: public: peter1138@7689: static const int priority = 10; peter1138@7666: /* virtual */ const char *GetName() { return "cocoa"; } peter1138@7666: /* virtual */ const char *GetDescription() { return "Cocoa Video Driver"; } peter1138@7666: /* virtual */ Driver *CreateInstance() { return new VideoDriver_Cocoa(); } peter1138@7666: }; bjarni@2736: Darkvater@6450: #endif /* VIDEO_COCOA_H */