OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
10 #ifndef VIDEO_COCOA_OGL_H
11 #define VIDEO_COCOA_OGL_H
15 @class OTTD_OpenGLView;
18 CGLContextObj gl_context;
22 const char *AllocateContext(
bool allow_software);
40 const char *
GetName()
const override {
return "cocoa-opengl"; }
42 void AllocateBackingStore(
bool force =
false)
override;
45 void Paint()
override;
50 NSView* AllocateDrawView()
override;
DriverFactoryBase(Driver::Type type, int priority, const char *name, const char *description)
Construct a new DriverFactory.
void Paint() override
Paint the window.
bool HasEfficient8Bpp() const override
Has this video driver an efficient code path for palette animated 8-bpp sprites?
bool UseSystemCursor() override
Get whether the mouse cursor is drawn by the video driver.
std::vector< std::string > StringList
Type for a list of strings.
void * GetVideoPointer() override
Get a pointer to the video buffer.
bool HasAnimBuffer() override
Does this video driver support a separate animation buffer in addition to the colour buffer?
Driver * CreateInstance() const override
Create an instance of this driver-class.
uint8 * anim_buffer
Animation buffer from OpenGL back-end.
const char * Start(const StringList ¶m) override
Start this driver.
@ DT_VIDEO
A video driver.
void ClearSystemSprites() override
Clear all cached sprites.
A driver for communicating with the user.
const char * GetName() const override
Return driver name.
void ReleaseVideoPointer() override
Hand video buffer back to the drawing backend.
uint8 * GetAnimBuffer() override
Get a pointer to the animation buffer of the video back-end.
void Stop() override
Stop this driver.
Base for all driver factories.