10#ifndef __GFXENVSDL2_H__
11#define __GFXENVSDL2_H__
17#include <SDL_opengl.h>
41 const eC_UInt& uiWidth,
42 const eC_UInt& uiHeight,
43 const eC_UInt& uiBufferCount = 1,
44 const eC_Bool& bResizable =
false);
58 const eC_UInt& uiWidth,
59 const eC_UInt& uiHeight,
60 const eC_UInt& uiBufferCount = 1,
61 const eC_Bool& bResizable =
false);
69 const eC_UInt& uiWidth,
70 const eC_UInt& uiHeight);
113 int m_iSDLSurfaceBitsPerPixel;
ImageType_t
Definition: GUICommonEnums.h:80
SurfaceMode_t
Definition: GfxEnv.h:60
Implements SDL2-specific features.
Definition: GfxEnvSDL2.h:27
virtual eC_Bool IsCreated() const
virtual void EndOfRefresh()
virtual eC_UInt GetHeight() const
SDL_GLContext m_pkGLContext
this is used as the context for OpenGL
Definition: GfxEnvSDL2.h:90
SDL_Window * m_pkSDLWindow
main-window
Definition: GfxEnvSDL2.h:88
CGfxEnvSDL2(const SurfaceMode_t &eSurfaceMode, const CGUICommonEnums::ImageType_t &eScreenFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount=1, const eC_Bool &bResizable=false)
SDL_Texture * m_pkSDLTexture
the texture used for framebuffer-access
Definition: GfxEnvSDL2.h:96
SDL_Renderer * m_pkSDLRenderer
main-renderer needed for framebuffer-access
Definition: GfxEnvSDL2.h:92
SDL_Surface * m_pkSDLFramebufferSurface
the surface used for framebuffer-access
Definition: GfxEnvSDL2.h:94
virtual eC_UInt GetWidth() const
virtual void SetScreenSize(const eC_UInt &uiWidth, const eC_UInt &uiHeight)
static eC_Bool CreateInstance(const SurfaceMode_t &eSurfaceMode, const CGUICommonEnums::ImageType_t &eScreenFormat, const eC_UInt &uiWidth, const eC_UInt &uiHeight, const eC_UInt &uiBufferCount=1, const eC_Bool &bResizable=false)
virtual void ** GetFrameBuffers() const
virtual eC_Bool SwapBuffers()
virtual void SetWindowCaption(const eC_String &kCaption)