mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
GfxContext renamed to DrawContext
This commit is contained in:
parent
4af0a8acf7
commit
bcf2f5029d
37 changed files with 101 additions and 101 deletions
|
|
@ -19,7 +19,7 @@ PostProcessing::PostProcessing() {
|
|||
PostProcessing::~PostProcessing() {
|
||||
}
|
||||
|
||||
void PostProcessing::use(GfxContext& context) {
|
||||
void PostProcessing::use(DrawContext& context) {
|
||||
const auto& vp = context.getViewport();
|
||||
if (fbo) {
|
||||
fbo->resize(vp.getWidth(), vp.getHeight());
|
||||
|
|
@ -29,7 +29,7 @@ void PostProcessing::use(GfxContext& context) {
|
|||
context.setFramebuffer(fbo.get());
|
||||
}
|
||||
|
||||
void PostProcessing::render(const GfxContext& context, Shader* screenShader) {
|
||||
void PostProcessing::render(const DrawContext& context, Shader* screenShader) {
|
||||
if (fbo == nullptr) {
|
||||
throw std::runtime_error("'use(...)' was never called");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue