Added revised functions for handling texture files

This commit is contained in:
_
2018-04-05 21:52:56 -07:00
parent 6d0deefe43
commit 81af655f35
3 changed files with 126 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
#define DEVIL1TEX_H
#include <stdint.h>
#include <stdbool.h>
#pragma pack(push, 1)
// disable struct padding
// to easily impose struct on plain data.
@@ -56,4 +56,19 @@ void locatetextures(unsigned int*,
struct TexturePack*,
struct TextureBatchDescriptor**);
bool gettexdescriptor(struct TextureBatchDescriptor**,
unsigned int,
const char *,
unsigned int);
bool gettexbatch(struct TextureBatch**,
unsigned int,
const char*,
unsigned int);
bool unpacktexbatch(struct Texture*,
unsigned int,
const char*,
const unsigned int);
#endif