Nebula
Loading...
Searching...
No Matches
Models::ShaderStateNode Class Reference

#include <shaderstatenode.h>

Inherits Models::TransformNode.

Inherited by Models::ParticleSystemNode, and Models::PrimitiveNode.

Classes

struct  DrawPacket
 

Public Member Functions

 ShaderStateNode ()
 constructor
 
virtual ~ShaderStateNode ()
 destructor
 
const Materials::MaterialId GetMaterial () const
 get surface
 
- Public Member Functions inherited from Models::TransformNode
 TransformNode ()
 constructor
 
virtual ~TransformNode ()
 destructor
 
void GetLODDistances (float &minDistance, float &maxDistance)
 Get LOD distances.
 
- Public Member Functions inherited from Models::ModelNode
 ModelNode ()
 constructor
 
virtual ~ModelNode ()
 destructor
 
const Util::Array< ModelNode * > & GetChildren () const
 return constant reference to children
 
const NodeType GetType () const
 get type of node
 
const NodeBits GetBits () const
 get feature bits of node
 
virtual bool GetImplicitHierarchyActivation () const
 return true if all children should create hierarchies upon calling CreateInstance
 
const Util::StringAtomGetName () const
 return name
 
const uint32_t HashCode () const
 get hash
 
virtual std::function< void(const CoreGraphics::CmdBufferId)> GetApplyFunction ()
 Get function to apply node.
 
virtual std::function< const CoreGraphics::PrimitiveGroup()> GetPrimitiveGroupFunction ()
 Get function to fetch primitive group.
 

Static Public Member Functions

static Util::FixedArray< CoreGraphics::ResourceTableIdCreateResourceTables ()
 Create resource table.
 

Static Public Attributes

static const uint NumMaxOffsets = 4
 

Protected Member Functions

bool Load (const Util::FourCC &fourcc, const Util::StringAtom &tag, const Ptr< IO::BinaryReader > &reader, bool immediate) override
 load shader state
 
virtual void Unload () override
 unload data
 
virtual void OnFinishedLoading (ModelStreamingData *streamingData) override
 called when loading finished
 
- Protected Member Functions inherited from Models::TransformNode
- Protected Member Functions inherited from Models::ModelNode
virtual void Discard ()
 discard node
 

Protected Attributes

Resources::ResourceId materialRes
 
Materials::MaterialId material
 
Resources::ResourceName materialName
 
Util::FixedArray< CoreGraphics::ResourceTableIdresourceTables
 
- Protected Attributes inherited from Models::TransformNode
Math::vec3 position
 
Math::quat rotate
 
Math::vec3 scale
 
Math::vec3 rotatePivot
 
Math::vec3 scalePivot
 
bool isInViewSpace
 
float minDistance
 
float maxDistance
 
bool useLodDistances
 
bool lockedToViewer
 
- Protected Attributes inherited from Models::ModelNode
Util::StringAtom name
 
NodeType type
 
NodeBits bits
 
Models::ModelNodeparent
 
Util::Array< Models::ModelNode * > children
 
Math::bbox boundingBox
 
Util::StringAtom tag
 
IndexT uniqueId
 

Friends

class ModelContext
 
class ModelLoader
 

Additional Inherited Members

- Static Protected Attributes inherited from Models::ModelNode
static IndexT ModelNodeUniqueIdCounter = 0
 

Constructor & Destructor Documentation

◆ ShaderStateNode()

Models::ShaderStateNode::ShaderStateNode ( )

constructor

◆ ~ShaderStateNode()

Models::ShaderStateNode::~ShaderStateNode ( )
virtual

destructor

Member Function Documentation

◆ CreateResourceTables()

Util::FixedArray< CoreGraphics::ResourceTableId > Models::ShaderStateNode::CreateResourceTables ( )
static

Create resource table.

◆ GetMaterial()

const Materials::MaterialId Models::ShaderStateNode::GetMaterial ( ) const
inline

get surface

◆ Load()

bool Models::ShaderStateNode::Load ( const Util::FourCC & fourcc,
const Util::StringAtom & tag,
const Ptr< IO::BinaryReader > & reader,
bool immediate )
overrideprotectedvirtual

load shader state

Reimplemented from Models::TransformNode.

◆ OnFinishedLoading()

void Models::ShaderStateNode::OnFinishedLoading ( ModelStreamingData * streamingData)
overrideprotectedvirtual

called when loading finished

Reimplemented from Models::ModelNode.

Reimplemented in Models::CharacterSkinNode, Models::ParticleSystemNode, and Models::PrimitiveNode.

◆ Unload()

void Models::ShaderStateNode::Unload ( )
overrideprotectedvirtual

unload data

Reimplemented from Models::ModelNode.

Reimplemented in Models::PrimitiveNode.

Friends And Related Symbol Documentation

◆ ModelContext

friend class ModelContext
friend

◆ ModelLoader

friend class ModelLoader
friend

Member Data Documentation

◆ material

Materials::MaterialId Models::ShaderStateNode::material
protected

◆ materialName

Resources::ResourceName Models::ShaderStateNode::materialName
protected

◆ materialRes

Resources::ResourceId Models::ShaderStateNode::materialRes
protected

◆ NumMaxOffsets

const uint Models::ShaderStateNode::NumMaxOffsets = 4
static

◆ resourceTables

Util::FixedArray<CoreGraphics::ResourceTableId> Models::ShaderStateNode::resourceTables
protected

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