#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 |
![]() | |
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 |
![]() | |
ComponentInstance (EntityInstance &entity, Component &resource) | |
virtual void | update (double deltaTime) |
nap::EntityInstance * | getEntityInstance () const |
nap::Component * | getComponent () const |
template<typename T > | |
T * | getComponent () const |
![]() | |
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 bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
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.