win tool very early draft

This commit is contained in:
openshwprojects
2022-11-22 08:54:28 +01:00
parent a767b23997
commit bd6c9a47d7
12 changed files with 615 additions and 52 deletions

View File

@@ -0,0 +1,18 @@
#ifdef WINDOWS
#include "TextureManager.h"
#include "Texture.h"
Texture2D *TextureManager::registerTexture(const char *fname) {
for (int i = 0; i < loaded.size(); i++) {
if (!stricmp(loaded[i]->getName(), fname))
return loaded[i];
}
Texture2D *t = new Texture2D();
t->loadTexture(fname);
loaded.push_back(t);
return t;
}
#endif