8 #ifndef META_OCEAN_RENDERING_GLES_WINDOWS_GLES_BITMAP_FRAMEBUFFER_H
9 #define META_OCEAN_RENDERING_GLES_WINDOWS_GLES_BITMAP_FRAMEBUFFER_H
12 #error This file is available on Windows platforms only!
26 #include <gl/wglext.h>
34 namespace GLESceneGraph
56 void setViewport(
const unsigned int left,
const unsigned int top,
const unsigned int width,
const unsigned int height)
override;
127 HGLRC contextHandle_ =
nullptr;
130 PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB_ =
nullptr;
133 PFNWGLCHOOSEPIXELFORMATARBPROC wglChoosePixelFormatARB_ =
nullptr;
This class implements Ocean's image class.
Definition: Frame.h:1792
This class is the base class for all bitmap framebuffers.
Definition: BitmapFramebuffer.h:37
This class implements a base for all GLESceneGraph framebuffers.
Definition: rendering/glescenegraph/GLESFramebuffer.h:34
This class is the base class for all GLESceneGraph window framebuffers for Windows platforms.
Definition: windows/GLESBitmapFramebuffer.h:47
void render() override
Renders the next frame into the framebuffer.
~GLESBitmapFramebuffer() override
Destructs a GLESceneGraph bitmap framebuffer.
GLESBitmapFramebuffer()
Creates a new GLESceneGraph bitmap framebuffer.
void makeNoncurrent() override
Makes this framebuffer to non current.
bool render(Frame &frame, Frame *depthFrame=nullptr) override
Renders the next frame and copies the image content into to a given frame.
bool initializeContext() override
Initialize the OpenGL ES display and context.
TextureFramebufferRef textureFrambuffer_
The texture framebuffer in which this framebuffer will be rendered.
Definition: windows/GLESBitmapFramebuffer.h:139
bool initialize(const FramebufferRef &shareFramebuffer=FramebufferRef()) override
Initializes the framebuffer.
void makeCurrent() override
Makes this framebuffer to the current one.
void setViewport(const unsigned int left, const unsigned int top, const unsigned int width, const unsigned int height) override
Sets the viewport of this framebuffer.
void release() override
Releases the framebuffer.
Platform::Win::BitmapWindow contextBitmapWindow_
The bitmap of the framebuffer for which the OpenGL context will be created.
Definition: windows/GLESBitmapFramebuffer.h:136
TextureFramebufferRef textureFramebuffer() const
Returns the texture framebuffer object of this framebuffer.
Definition: windows/GLESBitmapFramebuffer.h:142
bool acquireGLFunctions()
Acquires all OpenGL function pointers.
This class implements the engine for Windows platforms.
Definition: GLESEngineWindows.h:31
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