provides the basic rendering functionality required to render UI elements. Also provides a texture cache for different widgets. Each set of widget textures is represented by a 2D texture array consisting of six textures (widget state normal, pressed, checked plus corresponding halos).
More...
#include <renderer.h>
|
Texture2DArray * | createUITextures (const std::string &name, const std::vector< std::string > &files, const std::string &sourcePath) |
| create a UI texture object representing the normal, pressed, and checked state for both the UI widget and its halo. More...
|
|
Shader & | getShader () |
|
const Shader & | getShader () const |
|
TextRenderer & | getTextRenderer (bool bold=false) |
|
const TextRenderer & | getTextRenderer (bool bold=false) const |
|
int | getDefaultFontSize () const |
|
TextureQuadRenderer & | getTextureQuadRenderer () |
|
const TextureQuadRenderer & | getTextureQuadRenderer () const |
|
MeshDrawerGL * | getMeshDrawer () const |
|
Texture2DArray * | getUITextures (const std::string &name) const |
|
void | setTextColor (const vec4 &color) |
|
const vec4 & | getTextColor () const |
|
void | setUIColor (const vec4 &color) |
|
const vec4 & | getUIColor () const |
|
void | setSecondaryUIColor (const vec4 &color) |
|
const vec4 & | getSecondaryUIColor () const |
|
void | setBorderColor (const vec4 &color) |
|
const vec4 & | getBorderColor () const |
|
void | setHoverColor (const vec4 &color) |
|
const vec4 & | getHoverColor () const |
|
void | setDisabledColor (const vec4 &color) |
|
const vec4 & | getDisabledColor () const |
|
|
void | setupRectangleMesh () |
|
std::shared_ptr< Texture2DArray > | createUITextureObject (const std::vector< std::string > &textureFiles, const std::string &sourcePath) const |
|
|
const int | defaultFontSize_ = 13 |
|
Shader | uiShader_ |
|
TextRenderer | textRenderer_ |
|
TextRenderer | textRendererBold_ |
|
TextureQuadRenderer | quadRenderer_ |
|
std::shared_ptr< MeshDrawerGL > | meshDrawer_ |
|
std::shared_ptr< Mesh > | rectangleMesh_ |
|
std::map< std::string, std::shared_ptr< Texture2DArray > > | uiTextureMap_ |
|
vec4 | colorUI_ |
|
vec4 | colorSecondaryUI_ |
|
vec4 | colorBorder_ |
|
vec4 | colorText_ |
|
vec4 | colorHover_ |
|
vec4 | colorDisabled_ |
|
double | scaling_ |
|
provides the basic rendering functionality required to render UI elements. Also provides a texture cache for different widgets. Each set of widget textures is represented by a 2D texture array consisting of six textures (widget state normal, pressed, checked plus corresponding halos).
- See also
- glui::Element
◆ createUITextures()
Texture2DArray * inviwo::glui::Renderer::createUITextures |
( |
const std::string & |
name, |
|
|
const std::vector< std::string > & |
files, |
|
|
const std::string & |
sourcePath |
|
) |
| |
create a UI texture object representing the normal, pressed, and checked state for both the UI widget and its halo.
- Parameters
-
name | internal name of the texture object |
files | list of file names representing the following states: texture: normal, pressed, checked halo: normal, pressed, checked |
- Returns
- pointer to texture array
- Exceptions
-
The documentation for this class was generated from the following files: