NAP
Public Member Functions | Public Attributes | List of all members
RenderGnomonComponent Class Reference

#include <rendergnomoncomponent.h>

Public Member Functions

virtual void getDependentComponents (std::vector< rtti::TypeInfo > &components) const override
 
- Public Member Functions inherited from Component
virtual const rtti::TypeInfo getInstanceType () const =0
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

ResourcePtr< GnomonMeshmMesh
 Property: 'Gnomon' the Gnomon mesh this component renders. More...
 
float mLineWidth = 1.0f
 Property: 'LineWidth' Width of the line when rendered, values higher than 1.0 only work when the GPU supports it. More...
 
EDepthMode mDepthMode = EDepthMode::ReadWrite
 Property: 'DepthMode' Used depth mode. More...
 
- Public Attributes inherited from RenderableComponent
bool mVisible = true
 Property: 'Visible' if this object is rendered to target by the render service. More...
 
ResourcePtr< RenderLayermLayer
 Property: 'Layer' the render layer assigned to this component. More...
 
std::vector< ResourcePtr< RenderTag > > mTags
 Property: 'Tags' List of tags specifying the category this render component belongs to. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Renders a nap::GnomonMesh using a hard-coded nap::GnomonShader to target. The Gnomon material is automatically created on initialization. A Transform component is required to position the Gnomon.

Inheritance diagram for RenderGnomonComponent:
[legend]
Collaboration diagram for RenderGnomonComponent:
[legend]

Member Function Documentation

◆ getDependentComponents()

virtual void getDependentComponents ( std::vector< rtti::TypeInfo > &  components) const
overridevirtual

Requires a transform to position itself in the world.

Reimplemented from Component.

Member Data Documentation

◆ mDepthMode

Property: 'DepthMode' Used depth mode.

◆ mLineWidth

float mLineWidth = 1.0f

Property: 'LineWidth' Width of the line when rendered, values higher than 1.0 only work when the GPU supports it.

◆ mMesh

Property: 'Gnomon' the Gnomon mesh this component renders.