WorldRenderer refactor
This commit is contained in:
@@ -29,7 +29,7 @@ void PostProcessing::use(GfxContext& context) {
|
||||
context.setFramebuffer(fbo.get());
|
||||
}
|
||||
|
||||
void PostProcessing::render(GfxContext& context, Shader* screenShader) {
|
||||
void PostProcessing::render(const GfxContext& context, Shader* screenShader) {
|
||||
if (fbo == nullptr) {
|
||||
throw std::runtime_error("'use(...)' was never called");
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
/// @param context graphics context
|
||||
/// @param screenShader shader used for fullscreen quad
|
||||
/// @throws std::runtime_error if use(...) wasn't called before
|
||||
void render(GfxContext& context, Shader* screenShader);
|
||||
void render(const GfxContext& context, Shader* screenShader);
|
||||
};
|
||||
|
||||
#endif // GRAPHICS_POST_PROCESSING_H_
|
||||
|
||||
Reference in New Issue
Block a user