Rasterfarm-SDK
Loading...
Searching...
No Matches
EglWindow Class Reference

#include <eglwindow.h>

Public Types

enum  : uint { CONFIG_SIZE = 64 }
 
typedef UnorderedSet< EGLenum > EGLStateUnorderedSet
 

Public Member Functions

 EglWindow (const UintRectangle &rect)
 
 ~EglWindow ()
 
Application::Window getPlatformWindow ()
 
Application::Display getPlatformDisplay ()
 
SDL_Window * getWindow ()
 
void setNativeWindow (Application::Window window)
 
void destroySurface ()
 
void createSurface ()
 
bool getEGlExtension (const char *str)
 
const HeapArray< String > & getEGlExtensions ()
 
void swapBuffers ()
 
int getGLVersion ()
 

Static Public Member Functions

static EglWindowinstance ()
 
static EGLDisplay getEglSurface ()
 
static EGLDisplay getEglDisplay ()
 
static EGLDisplay getEglContext ()
 
static EGLDisplay const & getEglConfig ()
 
static EGLNativeWindowType getNativeWindow ()
 

Public Attributes

const EGLStateUnorderedSet eglConfigIntegerSet
 

Protected Member Functions

void mapConstants ()
 
int getEglInteger (EGLenum glState)
 
int getEglConfigInteger (GLenum value)
 

Static Protected Attributes

static EglWindowpInstance
 

Friends

class Application
 

Member Typedef Documentation

◆ EGLStateUnorderedSet

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : uint
Enumerator
CONFIG_SIZE 

Constructor & Destructor Documentation

◆ EglWindow()

EglWindow::EglWindow ( const UintRectangle & rect)

◆ ~EglWindow()

EglWindow::~EglWindow ( )

Member Function Documentation

◆ createSurface()

void EglWindow::createSurface ( )

◆ destroySurface()

void EglWindow::destroySurface ( )

◆ getEglConfig()

static EGLDisplay const & EglWindow::getEglConfig ( )
inlinestatic

◆ getEglConfigInteger()

int EglWindow::getEglConfigInteger ( GLenum value)
protected

◆ getEglContext()

static EGLDisplay EglWindow::getEglContext ( )
inlinestatic

◆ getEglDisplay()

static EGLDisplay EglWindow::getEglDisplay ( )
inlinestatic

◆ getEGlExtension()

bool EglWindow::getEGlExtension ( const char * str)

◆ getEGlExtensions()

const HeapArray< String > & EglWindow::getEGlExtensions ( )
inline

◆ getEglInteger()

int EglWindow::getEglInteger ( EGLenum glState)
protected

◆ getEglSurface()

static EGLDisplay EglWindow::getEglSurface ( )
inlinestatic

◆ getGLVersion()

int EglWindow::getGLVersion ( )
inline

◆ getNativeWindow()

static EGLNativeWindowType EglWindow::getNativeWindow ( )
inlinestatic

◆ getPlatformDisplay()

Application::Display EglWindow::getPlatformDisplay ( )

◆ getPlatformWindow()

Application::Window EglWindow::getPlatformWindow ( )

◆ getWindow()

SDL_Window * EglWindow::getWindow ( )
inline

◆ instance()

static EglWindow * EglWindow::instance ( )
inlinestatic

◆ mapConstants()

void EglWindow::mapConstants ( )
protected

Once the platform is initialized, this method should be called and only needs to be called once.

◆ setNativeWindow()

void EglWindow::setNativeWindow ( Application::Window window)

◆ swapBuffers()

void EglWindow::swapBuffers ( )

Swap the front and back buffers. NOTE: This is an abstraction of eglSwapBuffers.

Returns
void.

Friends And Related Symbol Documentation

◆ Application

friend class Application
friend

Member Data Documentation

◆ eglConfigIntegerSet

const EGLStateUnorderedSet EglWindow::eglConfigIntegerSet

◆ pInstance

EglWindow* EglWindow::pInstance
staticprotected

The documentation for this class was generated from the following file: