
30.09.2008, 16:34
|
|
Участник форума
Регистрация: 01.04.2008
Сообщений: 200
С нами:
9531722
Репутация:
39
|
|
идентификатор byte в C++
здравствуйте, подскажите, что не так в данной структуре
PHP код:
struct TTZFileHeader_t
{
char fileTypeString[4]; // "VTF" Valve texture file
int version[2]; // version[0].version[1]
int headerSize;
inline VTFFileHeader_t *pVTF( ) const
{
return (VTFFileHeader_t *)(((byte *)this) + headerSize);
};
unsigned short width;
unsigned short height;
unsigned int flags;
unsigned short numFrames;
unsigned short startFrame;
float bumpScale;
unsigned char numMipLevels;
unsigned char lowResImageWidth;
unsigned char lowResImageHeight;
};
в результате я получаю ошибки
d:\textures\texheder.h(38) : error C2065: 'byte' : undeclared identifier
d:\textures\texheder.h(38) : error C2059: syntax error : ')'
|
|
|