16 #ifndef SURGSIM_GRAPHICS_RENDERPASS_H
17 #define SURGSIM_GRAPHICS_RENDERPASS_H
39 class ScreenSpaceQuadRepresentation;
84 bool setMaterial(std::shared_ptr<Material> material);
124 const std::string& name,
125 std::shared_ptr<Texture> texture);
std::shared_ptr< RenderTarget > getRenderTarget()
Gets render target that is being used in this pass.
Definition: RenderPass.cpp:68
Definition: DriveElementFromInputBehavior.cpp:27
bool setMaterial(std::shared_ptr< Material > material)
Sets the material used for rendering.
Definition: RenderPass.cpp:73
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
RenderPass(const std::string &name)
Constructor.
Definition: RenderPass.cpp:31
~RenderPass()
Definition: RenderPass.cpp:41
std::shared_ptr< Camera > m_camera
The camera used for the pass.
Definition: RenderPass.h:109
std::shared_ptr< RenderTarget > m_renderTarget
The camera's rendertarget.
Definition: RenderPass.h:111
std::shared_ptr< Group > m_group
The groupd used for the pass.
Definition: RenderPass.h:110
virtual bool doInitialize() override
Executes the initialize operation.
Definition: RenderPass.cpp:46
void hideColorTarget()
Hides the color target display.
Definition: RenderPass.cpp:108
int m_renderOrder
The renderorder that is being used for this pass.
Definition: RenderPass.h:114
void hideDepthTarget()
Hides the depth target display.
Definition: RenderPass.cpp:131
std::shared_ptr< ScreenSpaceQuadRepresentation > m_debugColor
Definition: RenderPass.h:116
virtual void setRenderOrder(SurgSim::Graphics::Camera::RenderOrder order, int value)
Sets render order.
Definition: RenderPass.cpp:88
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 > getCamera()
Gets the camera.
Definition: RenderPass.cpp:53
std::shared_ptr< ScreenSpaceQuadRepresentation > m_debugDepth
Definition: RenderPass.h:117
std::shared_ptr< Material > m_material
The material, attached to the camera.
Definition: RenderPass.h:112
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
SceneElement is the basic part of a scene, it is a container of components.
Definition: SceneElement.h:48
std::shared_ptr< Material > getMaterial()
Gets the current material.
Definition: RenderPass.cpp:83
RenderOrder
Definition: Camera.h:53
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
Encapsulation of all the components necessary needed to implement a full renderpass, this SceneElement contains a Camera and Group, it can also take a Material (for shaders and uniforms) and a RenderTarget for textures that are used as the output for the camera.
Definition: RenderPass.h:50