Luanti 5.16.0-dev
Loading...
Searching...
No Matches
RenderSource Class Referenceabstract

Represents a source of rendering information such as textures. More...

#include <pipeline.h>

Inheritance diagram for RenderSource:
Collaboration diagram for RenderSource:

Public Member Functions

virtual u8 getTextureCount ()=0
 Return the number of textures in the source.
virtual video::ITexture * getTexture (u8 index)=0
 Get a texture by index.
Public Member Functions inherited from RenderPipelineObject
virtual ~RenderPipelineObject ()=default
virtual void reset (PipelineContext &context)

Detailed Description

Represents a source of rendering information such as textures.

Member Function Documentation

◆ getTexture()

virtual video::ITexture * RenderSource::getTexture ( u8 index)
pure virtual

Get a texture by index.

Returns nullptr is the texture does not exist.

Implemented in DynamicSource, RemappingSource, and TextureBuffer.

◆ getTextureCount()

virtual u8 RenderSource::getTextureCount ( )
pure virtual

Return the number of textures in the source.

Implemented in DynamicSource, RemappingSource, and TextureBuffer.


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