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);
60 const eC_UInt& uiWidth,
61 const eC_UInt& uiHeight,
62 const eC_UInt& uiBufferCount = 1,
63 const eC_Bool& bResizable =
false);
73 virtual void SetScreenSize(
const eC_UInt& uiWidth,
const eC_UInt& uiHeight);
115 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:92
SDL_Window * m_pkSDLWindow
main-window
Definition: GfxEnvSDL2.h:90
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)
virtual void SetScreenPosition(const eC_UInt &uiX, const eC_UInt &uiY)
SDL_Texture * m_pkSDLTexture
the texture used for framebuffer-access
Definition: GfxEnvSDL2.h:98
virtual eC_UInt GetXPos() const
SDL_Renderer * m_pkSDLRenderer
main-renderer needed for framebuffer-access
Definition: GfxEnvSDL2.h:94
SDL_Surface * m_pkSDLFramebufferSurface
the surface used for framebuffer-access
Definition: GfxEnvSDL2.h:96
virtual void * GetWindowHandle() const
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_UInt GetYPos() const
virtual eC_Bool SwapBuffers()
virtual void SetWindowCaption(const eC_String &kCaption)