#include <rendergnomoncomponent.h>
Public Member Functions | |
| RenderGnomonComponentInstance (EntityInstance &entity, Component &resource) | |
| virtual void | onDraw (IRenderTarget &renderTarget, VkCommandBuffer commandBuffer, const glm::mat4 &viewMatrix, const glm::mat4 &projectionMatrix) override |
| virtual bool | isSupported (nap::CameraComponentInstance &camera) const override |
| virtual bool | init (utility::ErrorState &errorState) override |
Public Member Functions inherited from RenderableComponentInstance | |
| RenderableComponentInstance (EntityInstance &entity, Component &resource) | |
| void | draw (IRenderTarget &renderTarget, VkCommandBuffer commandBuffer, const glm::mat4 &viewMatrix, const glm::mat4 &projectionMatrix) |
| void | setVisible (bool visible) |
| bool | isVisible () const |
| const std::vector< ResourcePtr< RenderTag > > & | getTags () const |
| RenderMask | getMask () const |
| bool | includesMask (RenderMask otherMask) |
| int | getRank () const |
| const RenderLayer * | getLayer () const |
Public Member Functions inherited from ComponentInstance | |
| ComponentInstance (EntityInstance &entity, Component &resource) | |
| virtual void | update (double deltaTime) |
| nap::EntityInstance * | getEntityInstance () const |
| nap::Component * | getComponent () const |
| template<typename T > | |
| T * | getComponent () const |
| virtual bool | init (utility::ErrorState &errorState) |
Public Member Functions inherited from Object | |
| Object () | |
| virtual | ~Object () |
| virtual void | onDestroy () |
| Object (Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| Object (Object &&)=delete | |
| Object & | operator= (Object &&)=delete |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Protected Attributes inherited from RenderableComponentInstance | |
| RenderService * | mRenderService = nullptr |
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.
| RenderGnomonComponentInstance | ( | EntityInstance & | entity, |
| Component & | resource | ||
| ) |
|
overridevirtual |
Initialize based on resource
| errorState | holds the error message when initialization fails |
Reimplemented from RenderableComponentInstance.
|
overridevirtual |
Called by the Render Service. Supports orthographic and perspective cameras
Reimplemented from RenderableComponentInstance.
|
overridevirtual |
Draws the Gnomon to the currently active render target.
| renderTarget | the target to render to. |
| commandBuffer | the currently active command buffer. |
| viewMatrix | often the camera world space location |
| projectionMatrix | often the camera projection matrix |
Implements RenderableComponentInstance.