Allows remapping texture indicies in another RenderSource. More...
#include <pipeline.h>
Public Member Functions | |
| RemappingSource (RenderSource *source) | |
| void | setMapping (u8 index, u8 target_index) |
| Maps texture index to a different index in the dependent source. | |
| 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 Attributes | |
| RenderSource * | m_source |
| std::vector< u8 > | m_mappings |
Additional Inherited Members | |
| Private Member Functions inherited from RenderPipelineObject | |
| virtual | ~RenderPipelineObject ()=default |
| virtual void | reset (PipelineContext &context) |
Allows remapping texture indicies in another RenderSource.
|
inline |
References m_source.
|
inlineoverridevirtual |
Get a texture by index.
Returns nullptr is the texture does not exist.
Implements RenderSource.
References RenderSource::getTexture(), m_mappings, and m_source.
|
inlineoverridevirtual |
|
inline |
Maps texture index to a different index in the dependent source.
| index | texture index as requested by the |
| target_index | matching texture index in the underlying |
References m_mappings.
| std::vector<u8> RemappingSource::m_mappings |
Referenced by getTexture(), getTextureCount(), and setMapping().
| RenderSource* RemappingSource::m_source |
Referenced by RemappingSource(), and getTexture().