added sphere struct; implemented texture read and find callbacks

This commit is contained in:
aap
2016-02-18 14:29:04 +01:00
parent 8083f88049
commit 7be2e634fe
4 changed files with 78 additions and 43 deletions

View File

@@ -318,6 +318,9 @@ struct Texture : PluginBase<Texture>
void streamWriteNative(Stream *stream);
uint32 streamGetSizeNative(void);
static Texture *(*findCB)(const char *name);
static Texture *(*readCB)(const char *name, const char *mask);
enum FilterMode {
NEAREST = 1,
LINEAR,
@@ -449,7 +452,7 @@ struct MeshHeader
struct MorphTarget
{
float32 boundingSphere[4];
Sphere boundingSphere;
float32 *vertices;
float32 *normals;
};