mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-11 08:51:12 +00:00
Reload shaders on resolution change.
This commit is contained in:
parent
fa6ca8d60a
commit
69e25640fb
4 changed files with 58 additions and 21 deletions
|
@ -91,6 +91,7 @@ public:
|
|||
void renderGridPoints();
|
||||
|
||||
void loadShaders();
|
||||
void unloadShaders(); // unloads shaders but keeps code and data intact, so that they can be reloaded.
|
||||
void deleteShaders();
|
||||
|
||||
void unloadDevice();
|
||||
|
@ -116,7 +117,7 @@ public:
|
|||
Shader *getShaderPtr(int handle);
|
||||
void setShaderPipelineSize(size_t size);
|
||||
bool setShaderPipelinePos(int handle, size_t pos);
|
||||
void unloadShader(int handle);
|
||||
void deleteShader(int handle);
|
||||
|
||||
protected:
|
||||
int _insertShader(Shader *sh);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue