Shaders
This commit is contained in:
parent
41d551e6e1
commit
486087b9cb
20 changed files with 2438 additions and 114 deletions
|
|
@ -185,6 +185,10 @@ private:
|
|||
sf::View gameView; // View for the game content
|
||||
ViewportMode viewportMode = ViewportMode::Fit;
|
||||
|
||||
// Shader intermediate texture (#106) - shared texture for shader rendering
|
||||
static std::unique_ptr<sf::RenderTexture> shaderIntermediate;
|
||||
static bool shaderIntermediateInitialized;
|
||||
|
||||
// Profiling overlay
|
||||
bool showProfilerOverlay = false; // F3 key toggles this
|
||||
int overlayUpdateCounter = 0; // Only update overlay every N frames
|
||||
|
|
@ -257,6 +261,11 @@ public:
|
|||
std::string getViewportModeString() const;
|
||||
sf::Vector2f windowToGameCoords(const sf::Vector2f& windowPos) const;
|
||||
|
||||
// Shader system (#106) - shared intermediate texture for shader rendering
|
||||
static sf::RenderTexture& getShaderIntermediate();
|
||||
static void initShaderIntermediate(unsigned int width, unsigned int height);
|
||||
static bool isShaderIntermediateReady() { return shaderIntermediateInitialized; }
|
||||
|
||||
// #153 - Headless simulation control
|
||||
float step(float dt = -1.0f); // Advance simulation; dt<0 means advance to next event
|
||||
int getSimulationTime() const { return simulation_time; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue