8 #ifndef META_OCEAN_RENDERING_GLES_WINDOWS_GLES_WINDOW_FRAMEBUFFER_H
9 #define META_OCEAN_RENDERING_GLES_WINDOWS_GLES_WINDOW_FRAMEBUFFER_H
18 #error This file is available on Windows platforms only!
21 #include <gl/wglext.h>
29 namespace GLESceneGraph
122 HGLRC contextHandle_ =
nullptr;
125 HWND windowHandle_ =
nullptr;
128 HDC windowDC_ =
nullptr;
131 PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB_ =
nullptr;
134 PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB_ =
nullptr;
137 bool framebufferVerticalSynchronization =
true;
143 unsigned int antialiasingBuffers_ = 4u;
PixelFormat
Definition of all pixel formats available in the Ocean framework.
Definition: Frame.h:183
@ FORMAT_RGBA32
Pixel format with byte order RGBA and 32 bits per pixel.
Definition: Frame.h:382
This class implements a base for all GLESceneGraph framebuffers.
Definition: rendering/glescenegraph/GLESFramebuffer.h:34
This class implements the engine for Windows platforms.
Definition: GLESEngineWindows.h:31
This class is the base class for all GLESceneGraph window framebuffers for Windows platforms.
Definition: windows/GLESWindowFramebuffer.h:42
bool setSupportAntialiasing(const unsigned int buffers) override
Sets whether this framebuffer will support hardware anti-aliasing.
void makeCurrent() override
Makes this framebuffer to the current one.
void render() override
Renders the next frame into the framebuffer.
GLESWindowFramebuffer()
Creates a new GLESceneGraph window framebuffer.
void setPreferredPixelFormat(const FrameType::PixelFormat pixelFormat) override
Sets the preferred pixel format of this framebuffer.
bool isAntialiasingSupported(const unsigned int buffers) const override
Returns whether the framebuffer supports hardware anti-aliasing.
void release() override
Releases the framebuffer.
bool acquireGLFunctions()
Acquires all OpenGL function pointers.
bool initializeContext() override
Initialize the OpenGL ES display and context.
~GLESWindowFramebuffer() override
Destructs a GLESceneGraph window framebuffer.
bool initializeById(const size_t id, const FramebufferRef &shareFramebuffer=FramebufferRef()) override
Sets the platform dependent framebuffer base id or handle and initializes the framebuffer.
bool isAntialiasing() const override
Returns whether the framebuffer uses hardware anti-aliasing.
This class is the base class for all window framebuffers.
Definition: rendering/WindowFramebuffer.h:55
SmartObjectRef< Framebuffer > FramebufferRef
Definition of a smart object reference holding a framebuffer.
Definition: rendering/Framebuffer.h:31
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15