librw/src/gtaplg.h

77 lines
1.1 KiB
C
Raw Normal View History

namespace gta {
using namespace rw;
enum
{
2015-01-19 13:32:12 +01:00
ID_SPECMAT = 0x253f2f6,
ID_EXTRAVERTCOLORS = 0x253f2f9,
2015-01-19 13:32:12 +01:00
ID_ENVMAT = 0x253f2fc,
ID_BREAKABLE = 0x253f2fd,
ID_NODENAME = 0x253f2fe
};
2015-01-19 13:32:12 +01:00
// Node name
extern int32 nodeNameOffset;
void registerNodeNamePlugin(void);
2015-01-19 13:32:12 +01:00
// Breakable model
struct Breakable
{
uint32 position;
uint32 numVertices;
uint32 numFaces;
uint32 numMaterials;
float32 *vertices;
float32 *texCoords;
uint8 *colors;
uint16 *faces;
uint16 *matIDs;
char (*texNames)[32];
char (*maskNames)[32];
float32 (*surfaceProps)[3];
};
extern int32 breakableOffset;
void registerBreakableModelPlugin(void);
2015-01-19 13:32:12 +01:00
// Extra vert colors
struct ExtraVertColors
{
uint8 *nightColors;
uint8 *dayColors;
float balance;
};
extern int32 extraVertColorOffset;
void registerExtraVertColorPlugin(void);
2015-01-19 13:32:12 +01:00
// Environment mat
struct EnvMat
{
int8 scaleX, scaleY;
int8 transScaleX, transScaleY;
int8 shininess;
Texture *texture;
};
extern int32 envMatOffset;
2015-01-19 13:32:12 +01:00
// Specular mat
struct SpecMat
{
float specularity;
Texture *texture;
};
extern int32 specMatOffset;
2015-01-19 13:32:12 +01:00
void registerEnvSpecPlugin(void);
2015-01-19 13:32:12 +01:00
}