8 #ifndef META_OCEAN_PLATFORM_GL_WIN_BITMAP_CONTEXT_H
9 #define META_OCEAN_PLATFORM_GL_WIN_BITMAP_CONTEXT_H
69 bool setSize(
const unsigned int width,
const unsigned int height);
83 bool createOpenGLContext(
const bool initializeOpenGL31 =
false,
const unsigned int multisamples = 1u)
override;
PixelFormat
Definition of all pixel formats available in the Ocean framework.
Definition: Frame.h:183
@ FORMAT_UNDEFINED
Undefined pixel format.
Definition: Frame.h:187
PixelOrigin
Defines different types of frame origin positions.
Definition: Frame.h:1046
@ ORIGIN_INVALID
Invalid origin type.
Definition: Frame.h:1048
This class encapsulates an OpenGL context.
Definition: platform/gl/Context.h:29
This class implements an OpenGL context based on a bitmap.
Definition: BitmapContext.h:35
const Platform::Win::Bitmap & bitmap() const
Returns the bitmap of this framebuffer.
Definition: BitmapContext.h:103
Platform::Win::Bitmap bitmap_
The bitmap of the framebuffer on which the OpenGL context will be created.
Definition: BitmapContext.h:94
~BitmapContext() override
Destructs this context.
bool releaseOpenGLContext() override
Releases the OpenGL context of this framebuffer.
BitmapContext()=default
Creates a new bitmap framebuffer with default values.
BitmapContext(const unsigned int width, const unsigned int height, const FrameType::PixelFormat pixelFormat, const FrameType::PixelOrigin pixelOrigin)
Creates a new bitmap framebuffer with specified dimension, pixel format and pixel origin.
bool createOpenGLContext(const bool initializeOpenGL31=false, const unsigned int multisamples=1u) override
Creates the OpenGL context for this framebuffer.
void makeCurrent(const bool state=true) override
Makes the OpenGL rendering context of this framebuffer the calling thread's current rendering context...
bool setSize(const unsigned int width, const unsigned int height)
Sets the size (the OpenGL viewport) of this framebuffer with upper left corner set to (0,...
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15