Nymph Game Engine
Chaiscript based Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Graphics::UI::Skin Class Reference

Class for UI skin. More...

#include <skin.h>

Public Member Functions

 Skin (std::shared_ptr< BaseTexture > texture, std::shared_ptr< Shader > shader)
 Skin constructor. More...
 
void setTexture (const std::shared_ptr< BaseTexture > &texture)
 Sets the texture. More...
 
void setShader (const std::shared_ptr< Shader > &shader)
 Sets the shader. More...
 
std::shared_ptr< BaseTexturegetTexture ()
 Gets the texture. More...
 
std::shared_ptr< ShadergetShader ()
 Gets the shader. More...
 

Detailed Description

Class for UI skin.

Constructor & Destructor Documentation

Graphics::UI::Skin::Skin ( std::shared_ptr< BaseTexture texture,
std::shared_ptr< Shader shader 
)

Skin constructor.

Parameters
[in]textureThe texture
[in]shaderThe shader

Member Function Documentation

std::shared_ptr< Shader > Graphics::UI::Skin::getShader ( )

Gets the shader.

Returns
The shader.

Referenced by generated::getSkinModule().

std::shared_ptr< BaseTexture > Graphics::UI::Skin::getTexture ( )

Gets the texture.

Returns
The texture.

Referenced by generated::getSkinModule().

void Graphics::UI::Skin::setShader ( const std::shared_ptr< Shader > &  shader)

Sets the shader.

Parameters
[in]shaderThe shader

Referenced by generated::getSkinModule().

void Graphics::UI::Skin::setTexture ( const std::shared_ptr< BaseTexture > &  texture)

Sets the texture.

Parameters
[in]textureThe texture

Referenced by generated::getSkinModule().


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