Kanzi 4.0.0-beta2
kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData Class Reference

Defines the data required when custom mipmap material has been specified. More...

#include <kanzi/core.ui/graphics3d/mipmap_generation_concept_impl.hpp>

Public Member Functions

void eraseAttachment (size_t attachmentIndex)
 Erases an attachment.
 
MipmapAttachmentgetAttachment (size_t attachmentIndex)
 Gets an attachment by index.
 
GeometrygetGeometry ()
 Gets the geometry contained within.
 
bool isEmpty () const
 Indicates whether or not the whole render data is empty.
 
 MipmapRenderData (Domain *domain)
 Constructor.
 

Static Public Attributes

static const size_t AttachmentCount
 Number of attachments.
 

Protected Attributes

array< MipmapAttachment, AttachmentCountm_attachments
 Array of rendering data for each attachment the mipmap rendering can target.
 
GeometrySharedPtr m_geometry
 Shared geometry for all mipmap rendering.
 

Detailed Description

template<typename TBaseClass, typename TDerivedClass, size_t FaceCount>
class kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData

Defines the data required when custom mipmap material has been specified.

Constructor & Destructor Documentation

◆ MipmapRenderData()

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::MipmapRenderData ( Domain * domain)
explicit

Constructor.

Member Function Documentation

◆ eraseAttachment()

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
void kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::eraseAttachment ( size_t attachmentIndex)

Erases an attachment.

Parameters
attachmentIndexAttachment index.

◆ getAttachment()

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
MipmapAttachment & kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::getAttachment ( size_t attachmentIndex)
inline

Gets an attachment by index.

Parameters
attachmentIndexAttachment index.

◆ getGeometry()

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
Geometry & kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::getGeometry ( )
inline

Gets the geometry contained within.

Returns
Geomerty reference.

◆ isEmpty()

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
bool kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::isEmpty ( ) const
inline

Indicates whether or not the whole render data is empty.

Returns
If all attachments are empty true, false otherwise.

Member Data Documentation

◆ AttachmentCount

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
const size_t kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::AttachmentCount
static

Number of attachments.

◆ m_geometry

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
GeometrySharedPtr kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::m_geometry
protected

Shared geometry for all mipmap rendering.

◆ m_attachments

template<typename TBaseClass , typename TDerivedClass , size_t FaceCount>
array<MipmapAttachment, AttachmentCount> kanzi::MipmapGenerationConceptImpl< TBaseClass, TDerivedClass, FaceCount >::MipmapRenderData::m_attachments
protected

Array of rendering data for each attachment the mipmap rendering can target.

Order is color textures 0, 1, 2, and 3 and depth.


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