16 #ifndef SURGSIM_GRAPHICS_RENDERPASS_H 17 #define SURGSIM_GRAPHICS_RENDERPASS_H 39 class ScreenSpaceQuadRepresentation;
61 virtual bool doInitialize()
override;
66 bool setRenderTarget(std::shared_ptr<RenderTarget> target);
70 std::shared_ptr<RenderTarget> getRenderTarget();
79 std::shared_ptr<Camera> getCamera();
84 bool setMaterial(std::shared_ptr<Material> material);
88 std::shared_ptr<Material> getMaterial();
93 void showColorTarget(
int x,
int y,
int width,
int height);
96 void hideColorTarget();
101 void showDepthTarget(
int x,
int y,
int width,
int height);
104 void hideDepthTarget();
123 std::shared_ptr<ScreenSpaceQuadRepresentation> buildDebugQuad(
125 std::shared_ptr<Texture> texture);
Definition: DriveElementFromInputBehavior.cpp:27
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
int m_renderOrder
The renderorder that is being used for this pass.
Definition: RenderPass.h:114
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
std::shared_ptr< ScreenSpaceQuadRepresentation > m_debugColor
Definition: RenderPass.h:116
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
SceneElement is the basic part of a scene, it is a container of components.
Definition: SceneElement.h:48
RenderOrder
Definition: Camera.h:53
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