Otclient  14/8/2020
Graphics Class Reference

#include <graphics.h>

Public Types

enum  PainterEngine { Painter_Any = 0, Painter_OpenGL1, Painter_OpenGL2, Painter_DirectX9 }
 

Public Member Functions

 Graphics ()
 
void init ()
 
void terminate ()
 
bool parseOption (const std::string &option)
 
bool isPainterEngineAvailable (PainterEngine painterEngine)
 
bool selectPainterEngine (PainterEngine painterEngine)
 
PainterEngine getPainterEngine ()
 
void resize (const Size &size)
 
int getMaxTextureSize ()
 
const SizegetViewportSize ()
 
std::string getVendor ()
 
std::string getRenderer ()
 
std::string getVersion ()
 
std::string getExtensions ()
 
void setShouldUseShaders (bool enable)
 
bool ok ()
 
bool canUseDrawArrays ()
 
bool canUseShaders ()
 
bool canUseFBO ()
 
bool canUseBilinearFiltering ()
 
bool canUseHardwareBuffers ()
 
bool canUseNonPowerOfTwoTextures ()
 
bool canUseMipmaps ()
 
bool canUseHardwareMipmaps ()
 
bool canUseClampToEdge ()
 
bool canUseBlendFuncSeparate ()
 
bool canUseBlendEquation ()
 
bool canCacheBackbuffer ()
 
bool shouldUseShaders ()
 
bool hasScissorBug ()
 

Detailed Description

Definition at line 30 of file graphics.h.

Member Enumeration Documentation

◆ PainterEngine

Enumerator
Painter_Any 
Painter_OpenGL1 
Painter_OpenGL2 
Painter_DirectX9 

Definition at line 35 of file graphics.h.

Constructor & Destructor Documentation

◆ Graphics()

Graphics::Graphics ( )

Definition at line 46 of file graphics.cpp.

Member Function Documentation

◆ canCacheBackbuffer()

bool Graphics::canCacheBackbuffer ( )

Definition at line 401 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseBilinearFiltering()

bool Graphics::canUseBilinearFiltering ( )

Definition at line 308 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseBlendEquation()

bool Graphics::canUseBlendEquation ( )

Definition at line 388 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseBlendFuncSeparate()

bool Graphics::canUseBlendFuncSeparate ( )

Definition at line 375 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseClampToEdge()

bool Graphics::canUseClampToEdge ( )

Definition at line 363 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseDrawArrays()

bool Graphics::canUseDrawArrays ( )

Definition at line 267 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseFBO()

bool Graphics::canUseFBO ( )

Definition at line 293 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseHardwareBuffers()

bool Graphics::canUseHardwareBuffers ( )

Definition at line 314 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseHardwareMipmaps()

bool Graphics::canUseHardwareMipmaps ( )

Definition at line 349 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseMipmaps()

bool Graphics::canUseMipmaps ( )

Definition at line 343 of file graphics.cpp.

◆ canUseNonPowerOfTwoTextures()

bool Graphics::canUseNonPowerOfTwoTextures ( )

Definition at line 329 of file graphics.cpp.

Here is the caller graph for this function:

◆ canUseShaders()

bool Graphics::canUseShaders ( )

Definition at line 279 of file graphics.cpp.

Here is the caller graph for this function:

◆ getExtensions()

std::string Graphics::getExtensions ( )
inline

Definition at line 61 of file graphics.h.

◆ getMaxTextureSize()

int Graphics::getMaxTextureSize ( )
inline

Definition at line 55 of file graphics.h.

Here is the caller graph for this function:

◆ getPainterEngine()

PainterEngine Graphics::getPainterEngine ( )
inline

Definition at line 51 of file graphics.h.

Here is the caller graph for this function:

◆ getRenderer()

std::string Graphics::getRenderer ( )
inline

Definition at line 59 of file graphics.h.

Here is the caller graph for this function:

◆ getVendor()

std::string Graphics::getVendor ( )
inline

Definition at line 58 of file graphics.h.

Here is the caller graph for this function:

◆ getVersion()

std::string Graphics::getVersion ( )
inline

Definition at line 60 of file graphics.h.

Here is the caller graph for this function:

◆ getViewportSize()

const Size& Graphics::getViewportSize ( )
inline

Definition at line 56 of file graphics.h.

Here is the caller graph for this function:

◆ hasScissorBug()

bool Graphics::hasScissorBug ( )

Definition at line 416 of file graphics.cpp.

Here is the caller graph for this function:

◆ init()

void Graphics::init ( )

Definition at line 52 of file graphics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isPainterEngineAvailable()

bool Graphics::isPainterEngineAvailable ( Graphics::PainterEngine  painterEngine)

Definition at line 166 of file graphics.cpp.

Here is the caller graph for this function:

◆ ok()

bool Graphics::ok ( )
inline

Definition at line 65 of file graphics.h.

Here is the caller graph for this function:

◆ parseOption()

bool Graphics::parseOption ( const std::string &  option)

Definition at line 137 of file graphics.cpp.

◆ resize()

void Graphics::resize ( const Size size)

Definition at line 253 of file graphics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectPainterEngine()

bool Graphics::selectPainterEngine ( PainterEngine  painterEngine)

Definition at line 185 of file graphics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShouldUseShaders()

void Graphics::setShouldUseShaders ( bool  enable)
inline

Definition at line 63 of file graphics.h.

Here is the caller graph for this function:

◆ shouldUseShaders()

bool Graphics::shouldUseShaders ( )
inline

Definition at line 78 of file graphics.h.

Here is the caller graph for this function:

◆ terminate()

void Graphics::terminate ( )

Definition at line 112 of file graphics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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