Shaders now are managed by a manger that can do hot reloading and it also will detect a bad shader and use an ERROR shader so you know it's busted visually.
This commit is contained in:
parent
a5b8e411e3
commit
35ced58cc9
14 changed files with 144 additions and 13 deletions
2
main.cpp
2
main.cpp
|
@ -5,6 +5,7 @@
|
|||
#include "ai.hpp"
|
||||
#include "animation.hpp"
|
||||
#include <iostream>
|
||||
#include "shaders.hpp"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
try {
|
||||
|
@ -12,6 +13,7 @@ int main(int argc, char* argv[]) {
|
|||
sound::init();
|
||||
ai::init("assets/ai.json");
|
||||
animation::init();
|
||||
shaders::init();
|
||||
|
||||
sound::mute(true);
|
||||
gui::FSM main;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue