|
OpenTTD Source 20260129-master-g2bb01bd0e4
|
Code related to the cocoa OpengL video driver. More...
#include "../../stdafx.h"#include "../../os/macosx/macos.h"#include "../../os/macosx/macos_objective_c.h"#include "../../openttd.h"#include "../../debug.h"#include "../../core/geometry_func.hpp"#include "../../core/math_func.hpp"#include "cocoa_ogl.h"#include "cocoa_wnd.h"#include "../../blitter/factory.hpp"#include "../../gfx_func.h"#include "../../framerate_type.h"#include "../opengl.h"import <dlfcn.h>import <OpenGL/OpenGL.h>import <OpenGL/gl3.h>Go to the source code of this file.
Data Structures | |
| class | OTTD_CGLLayer |
| class | OTTD_CGLLayerView |
Macros | |
| #define | GL_SILENCE_DEPRECATION |
| Macro defined before OpenGL and GLUT includes to avoid deprecation messages. | |
Functions | |
| static OGLProc | GetOGLProcAddressCallback (const char *proc) |
| Platform-specific callback to get an OpenGL function pointer. | |
Variables | |
| static Palette | _local_palette |
| Current palette to use for drawing. | |
| static bool | _allowSoftware |
| static FVideoDriver_CocoaOpenGL | iFVideoDriver_CocoaOpenGL |
| Storage for instance of the FVideoDriver_CocoaOpenGL class. | |
Code related to the cocoa OpengL video driver.
Definition in file cocoa_ogl.mm.
| #define GL_SILENCE_DEPRECATION |
Macro defined before OpenGL and GLUT includes to avoid deprecation messages.
Definition at line 24 of file cocoa_ogl.mm.
|
static |
Platform-specific callback to get an OpenGL function pointer.
Definition at line 45 of file cocoa_ogl.mm.
|
static |
Definition at line 69 of file cocoa_ogl.mm.
|
static |
Current palette to use for drawing.
Definition at line 42 of file cocoa_ogl.mm.
Referenced by VideoDriver_CocoaQuartz::CheckPaletteAnim(), VideoDriver_Win32Base::CheckPaletteAnim(), VideoDriver_CocoaOpenGL::Paint(), VideoDriver_Win32GDI::Paint(), and VideoDriver_CocoaQuartz::UpdatePalette().
|
static |
Storage for instance of the FVideoDriver_CocoaOpenGL class.
Definition at line 179 of file cocoa_ogl.mm.