Sparkle 0.0.1
Loading...
Searching...
No Matches
spk::TexturePainter Class Reference

Painter that renders textured meshes. More...

#include <spk_texture_painter.hpp>

Inheritance diagram for spk::TexturePainter:
Inheritance graph
Collaboration diagram for spk::TexturePainter:
Collaboration graph

Public Member Functions

 TexturePainter ()
 Builds a texture painter with its rendering pipeline.
void setLayer (const float &p_layer)
 Sets the layer value used during rendering.
const float & layer () const
 Returns the current layer value.
void setTexture (const OpenGL::TextureObject *p_texture)
 Sets the texture used for rendering.
const OpenGL::TextureObjecttexture () const
 Returns the current texture.
Public Member Functions inherited from spk::MeshPainter< TextureMesh >
virtual void setMesh (const Mesh *p_mesh)
 Sets the mesh to render.
const Meshmesh () const
 Returns the currently bound mesh.
void render ()
 Renders the current mesh when available.

Additional Inherited Members

Public Types inherited from spk::MeshPainter< TextureMesh >
using Mesh
 Mesh type handled by the painter.
Protected Member Functions inherited from spk::MeshPainter< TextureMesh >
 MeshPainter (Lumina::Pipeline &p_pipeline)
 Builds a mesh painter bound to a pipeline.
Lumina::Pipeline::Object_objectHandle ()
 Returns the render object handle.

Detailed Description

Painter that renders textured meshes.

See also
TextureMesh
painter.setLayer(1.0f);
Painter that renders textured meshes.
Definition spk_texture_painter.hpp:204
void setLayer(const float &p_layer)
Sets the layer value used during rendering.
Definition spk_texture_painter.cpp:23
const OpenGL::TextureObject * texture() const
Returns the current texture.
Definition spk_texture_painter.cpp:39
void setTexture(const OpenGL::TextureObject *p_texture)
Sets the texture used for rendering.
Definition spk_texture_painter.cpp:34

Member Function Documentation

◆ layer()

const float & spk::TexturePainter::layer ( ) const

Returns the current layer value.

Returns
Layer value.

◆ setLayer()

void spk::TexturePainter::setLayer ( const float & p_layer)

Sets the layer value used during rendering.

Parameters
p_layerLayer value.
Here is the caller graph for this function:

◆ setTexture()

void spk::TexturePainter::setTexture ( const OpenGL::TextureObject * p_texture)

Sets the texture used for rendering.

Parameters
p_textureTexture pointer, may be null to detach.

◆ texture()

const OpenGL::TextureObject * spk::TexturePainter::texture ( ) const

Returns the current texture.

Returns
Texture pointer or nullptr.

The documentation for this class was generated from the following files:
  • includes/structure/graphics/painter/spk_texture_painter.hpp
  • srcs/structure/graphics/painter/spk_texture_painter.cpp