Skip to content

Commit

Permalink
Move present components to dagon.render.present
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Dec 23, 2024
1 parent a3dcc7b commit 3ff4f4c
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/dagon/game/game.d
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import dagon.resource.scene;
import dagon.render.renderer;
import dagon.render.deferred;
import dagon.render.postproc;
import dagon.render.presentrenderer;
import dagon.render.present;
import dagon.render.hudrenderer;

version(Windows)
Expand Down
2 changes: 1 addition & 1 deletion src/dagon/render/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ public
import dagon.render.renderer;
import dagon.render.deferred;
import dagon.render.postproc;
import dagon.render.presentrenderer;
import dagon.render.present;
import dagon.render.hudrenderer;
}
2 changes: 0 additions & 2 deletions src/dagon/render/postproc/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public
{
import dagon.render.postproc.blurpass;
import dagon.render.postproc.filterpass;
import dagon.render.postproc.presentpass;
import dagon.render.postproc.shaders;
}

Expand Down Expand Up @@ -143,7 +142,6 @@ class PostProcRenderer: Renderer
FilterPass passFXAA;
FilterPass passLensDistortion;
FilterPass passLUT;
PresentPass passPresent;

bool _dofEnabled = false;
bool _motionBlurEnabled = false;
Expand Down
1 change: 0 additions & 1 deletion src/dagon/render/postproc/shaders/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ public
import dagon.render.postproc.shaders.lensdistortion;
import dagon.render.postproc.shaders.lut;
import dagon.render.postproc.shaders.motionblur;
import dagon.render.postproc.shaders.present;
import dagon.render.postproc.shaders.tonemap;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.render.presentrenderer;
module dagon.render.present;

import dlib.core.memory;
import dlib.core.ownership;
Expand All @@ -37,7 +37,7 @@ import dagon.resource.scene;
import dagon.render.renderer;
import dagon.render.pass;
import dagon.render.framebuffer;
import dagon.render.postproc.presentpass;
import dagon.render.present.presentpass;

class PresentRenderer: Renderer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.render.postproc.presentpass;
module dagon.render.present.presentpass;

import std.stdio;

Expand All @@ -37,7 +37,7 @@ import dagon.graphics.screensurface;
import dagon.render.pipeline;
import dagon.render.pass;
import dagon.render.framebuffer;
import dagon.render.postproc.shaders.present;
import dagon.render.present.shaders.present;

class PresentPass: RenderPass
{
Expand Down
33 changes: 33 additions & 0 deletions src/dagon/render/present/shaders/package.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
Copyright (c) 2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.render.present.shaders;

public
{
import dagon.render.present.shaders.present;
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/

module dagon.render.postproc.shaders.present;
module dagon.render.present.shaders.present;

import std.stdio;

Expand Down

0 comments on commit 3ff4f4c

Please sign in to comment.