OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
NuklearOverlayRenderer Class Reference

#include <NuklearOverlayRenderer.h>

Public Member Functions

 NuklearOverlayRenderer ()
 
 ~NuklearOverlayRenderer ()
 
void render (nk_context *context, const Sizei &outputPresent, bool useOGLES, int *drawCalls)
 
void reloadShaders (bool useOGLES)
 

Private Member Functions

void _initialize (nk_context *context)
 
bool _createDevice ()
 
struct nk_tex_font_loadFont (const char *font_path, size_t font_size)
 
void _cleanup ()
 

Private Attributes

std::unique_ptr< nk_state_state
 
bool _useOGLES = false
 
OpenGLShader _shader
 
int32_t _attribPos = 0
 
int32_t _attribUv = 0
 
int32_t _attribCol = 0
 
int32_t _uniformTex = 0
 
int32_t _uniformProj = 0
 
nk_tex_font_defaultFont = nullptr
 

Constructor & Destructor Documentation

◆ NuklearOverlayRenderer()

NuklearOverlayRenderer::NuklearOverlayRenderer ( )

◆ ~NuklearOverlayRenderer()

NuklearOverlayRenderer::~NuklearOverlayRenderer ( )

Member Function Documentation

◆ _cleanup()

void NuklearOverlayRenderer::_cleanup ( )
private

◆ _createDevice()

bool NuklearOverlayRenderer::_createDevice ( )
private

◆ _initialize()

void NuklearOverlayRenderer::_initialize ( nk_context *  context)
private

◆ _loadFont()

struct nk_tex_font * NuklearOverlayRenderer::_loadFont ( const char *  font_path,
size_t  font_size 
)
private

◆ reloadShaders()

void NuklearOverlayRenderer::reloadShaders ( bool  useOGLES)

◆ render()

void NuklearOverlayRenderer::render ( nk_context *  context,
const Sizei outputPresent,
bool  useOGLES,
int *  drawCalls 
)

Member Data Documentation

◆ _attribCol

int32_t NuklearOverlayRenderer::_attribCol = 0
private

◆ _attribPos

int32_t NuklearOverlayRenderer::_attribPos = 0
private

◆ _attribUv

int32_t NuklearOverlayRenderer::_attribUv = 0
private

◆ _defaultFont

nk_tex_font* NuklearOverlayRenderer::_defaultFont = nullptr
private

◆ _shader

OpenGLShader NuklearOverlayRenderer::_shader
private

◆ _state

std::unique_ptr<nk_state> NuklearOverlayRenderer::_state
private

◆ _uniformProj

int32_t NuklearOverlayRenderer::_uniformProj = 0
private

◆ _uniformTex

int32_t NuklearOverlayRenderer::_uniformTex = 0
private

◆ _useOGLES

bool NuklearOverlayRenderer::_useOGLES = false
private

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