XML data layer: pugixml (external/pugixml, v1.15), a format-neutral DataNode API for every loader, DataFormat=auto|json|xml (default xml), KAGE's archive file system ported (index once, four unpackers, the original's mount order) so --resources can point at an install's resources/ with no import step, the original XML .anm2 loader beside Anm2Ed JSON, mods' own XML; 72 goldens identical from converted resources and from the install
This commit is contained in:
1 parent
74322af121
commit
6d8a43775d
52 files changed
+1513
-909
No files matched your search
@@ -27,10 +27,9 @@ unsigned int Overlay::thumbnail_get(ModEntry& mod)
|
||||
|
||||
unsigned int texture = 0;
|
||||
int bound = 0;
|
||||
int channels = 0;
|
||||
int height = 0;
|
||||
int width = 0;
|
||||
if (stbi_uc* pixels = stbi_load(path.c_str(), &width, &height, &channels, STBI_rgb_alpha))
|
||||
if (uint8_t* pixels = KAGE::Graphics::texels_load(path, width, height))
|
||||
{
|
||||
gl.GetIntegerv(GL_TEXTURE_BINDING_2D, &bound);
|
||||
gl.GenTextures(1, &texture);
|
||||
|
||||
Reference in new issue
Block a user