Luanti 5.16.0-dev
Loading...
Searching...
No Matches
DynamicSource Class Reference

#include <pipeline.h>

Inheritance diagram for DynamicSource:
Collaboration diagram for DynamicSource:

Public Member Functions

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

Private Attributes

RenderSourceupstream { nullptr }

Member Function Documentation

◆ getTexture()

video::ITexture * DynamicSource::getTexture ( u8 index)
overridevirtual

Get a texture by index.

Returns nullptr is the texture does not exist.

Implements RenderSource.

References isConfigured(), and upstream.

Here is the call graph for this function:

◆ getTextureCount()

u8 DynamicSource::getTextureCount ( )
overridevirtual

Return the number of textures in the source.

Implements RenderSource.

References isConfigured(), and upstream.

Here is the call graph for this function:

◆ isConfigured()

bool DynamicSource::isConfigured ( )
inline

References upstream.

Referenced by getTexture(), and getTextureCount().

Here is the caller graph for this function:

◆ setRenderSource()

void DynamicSource::setRenderSource ( RenderSource * value)
inline

References upstream.

Member Data Documentation

◆ upstream

RenderSource* DynamicSource::upstream { nullptr }
private

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