Go to the documentation of this file.
16 #ifndef SURGSIM_GRAPHICS_RENDERPASS_H
17 #define SURGSIM_GRAPHICS_RENDERPASS_H
39 class ScreenSpaceQuadRepresentation;
84 bool setMaterial(std::shared_ptr<SurgSim::Framework::Component> material);
125 std::shared_ptr<Texture> texture);
~RenderPass()
Definition: RenderPass.cpp:41
std::shared_ptr< Material > getMaterial()
Gets the current material.
Definition: RenderPass.cpp:83
void showDepthTarget(int x, int y, int width, int height)
Shows a quad on the screen with the texture used as the depth target for this pass.
Definition: RenderPass.cpp:116
void showColorTarget(int x, int y, int width, int height)
Shows a quad on the screen with the texture used as the color target for this pass.
Definition: RenderPass.cpp:93
std::shared_ptr< ScreenSpaceQuadRepresentation > buildDebugQuad(const std::string &name, std::shared_ptr< Texture > texture)
Utility function to build a debug quad.
Definition: RenderPass.cpp:139
std::shared_ptr< Camera > m_camera
The camera used for the pass.
Definition: RenderPass.h:109
bool doInitialize() override
Executes the initialize operation.
Definition: RenderPass.cpp:46
Definition: CompoundShapeToGraphics.cpp:30
RenderPass(const std::string &name)
Constructor.
Definition: RenderPass.cpp:31
bool setMaterial(std::shared_ptr< SurgSim::Framework::Component > material)
Sets the material used for rendering.
Definition: RenderPass.cpp:73
std::shared_ptr< RenderTarget > m_renderTarget
The camera's rendertarget.
Definition: RenderPass.h:111
int m_renderOrder
The renderorder that is being used for this pass.
Definition: RenderPass.h:114
bool setRenderTarget(std::shared_ptr< RenderTarget > target)
Sets render target for the camera, this abstracts the textures that are being used for rendering into...
Definition: RenderPass.cpp:58
std::shared_ptr< ScreenSpaceQuadRepresentation > m_debugColor
Definition: RenderPass.h:116
std::shared_ptr< ScreenSpaceQuadRepresentation > m_debugDepth
Definition: RenderPass.h:117
RenderOrder
Definition: Camera.h:56
void hideColorTarget()
Hides the color target display.
Definition: RenderPass.cpp:108
std::shared_ptr< Material > m_material
The material, attached to the camera.
Definition: RenderPass.h:112
SceneElement is the basic part of a scene, it is a container of components.
Definition: SceneElement.h:52
Encapsulation of all the components necessary needed to implement a full renderpass,...
Definition: RenderPass.h:51
std::shared_ptr< RenderTarget > getRenderTarget()
Gets render target that is being used in this pass.
Definition: RenderPass.cpp:68
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
std::shared_ptr< Group > m_group
The groupd used for the pass.
Definition: RenderPass.h:110
std::shared_ptr< Camera > getCamera()
Gets the camera.
Definition: RenderPass.cpp:53
virtual void setRenderOrder(SurgSim::Graphics::Camera::RenderOrder order, int value)
Sets render order.
Definition: RenderPass.cpp:88
void hideDepthTarget()
Hides the depth target display.
Definition: RenderPass.cpp:131