Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5893: Add separate entry point to RenderSystem for drawing the scene…
… in lighting mode.
- Loading branch information
1 parent
c1996a6
commit da0a46f
Showing
7 changed files
with
171 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
|
||
#include "irender.h" | ||
#include "fmt/format.h" | ||
|
||
namespace render | ||
{ | ||
|
||
class LightingModeRenderResult : | ||
public IRenderResult | ||
{ | ||
public: | ||
std::size_t visibleLights = 0; | ||
std::size_t skippedLights = 0; | ||
|
||
std::string toString() override | ||
{ | ||
return fmt::format("Lights: {0} of {1}", visibleLights, skippedLights); | ||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters