L
linke520
Unregistered / Unconfirmed
GUEST, unregistred user!
class import3ds
{
FILE *fp;
char *chunk;
int chunklen;
unsigned short chunkid;
int filepos,nmat;
material *matlib;
float masterscale,scale;
virtual void object3d(char *name,int nv,int nf,int ntc,float *local_axis)
{ ;
};
virtual void vertex3(float *vec)
{ ;
};
virtual void text_coord(float *uv)
{ ;
};
virtual void face3(unsigned short *fa)
{ ;
};
virtual void camera(char *name, float *pos, float *target, float bank, float lens)
{ ;
};
virtual void pointlight(char *name, float *pos,float *color)
{ ;
};
virtual void spotlight(char *name, float *pos,float *target,float *color,float hotspot,float falloff)
{ ;
};
virtual void face_material(material *mat,int nf,unsigned short *faces)
{ ; };
virtual int object_name(char *name)
{ return 1; };
int read_chunk();
void jump_chunk();
void load_chunk();
void load_object();
void load_string(char *str);
void load_light(char *objname);
void load_mesh(char *objname);
void load_mapping(struct mapping *mat);
void load_material();
public:
import3ds()
{
chunk=0;
chunklen=0;
nmat=0;
matlib=0;
masterscale=1.0f;
scale=1.0;
filepos=0;
};
~import3ds()
{
if (chunk) delete chunk;
if (matlib) delete matlib;
};
int import(char *name,float scalefactor);
};
把这个类转化为delphi类该如何转换呢?
大虾帮帮忙,多谢了!
{
FILE *fp;
char *chunk;
int chunklen;
unsigned short chunkid;
int filepos,nmat;
material *matlib;
float masterscale,scale;
virtual void object3d(char *name,int nv,int nf,int ntc,float *local_axis)
{ ;
};
virtual void vertex3(float *vec)
{ ;
};
virtual void text_coord(float *uv)
{ ;
};
virtual void face3(unsigned short *fa)
{ ;
};
virtual void camera(char *name, float *pos, float *target, float bank, float lens)
{ ;
};
virtual void pointlight(char *name, float *pos,float *color)
{ ;
};
virtual void spotlight(char *name, float *pos,float *target,float *color,float hotspot,float falloff)
{ ;
};
virtual void face_material(material *mat,int nf,unsigned short *faces)
{ ; };
virtual int object_name(char *name)
{ return 1; };
int read_chunk();
void jump_chunk();
void load_chunk();
void load_object();
void load_string(char *str);
void load_light(char *objname);
void load_mesh(char *objname);
void load_mapping(struct mapping *mat);
void load_material();
public:
import3ds()
{
chunk=0;
chunklen=0;
nmat=0;
matlib=0;
masterscale=1.0f;
scale=1.0;
filepos=0;
};
~import3ds()
{
if (chunk) delete chunk;
if (matlib) delete matlib;
};
int import(char *name,float scalefactor);
};
把这个类转化为delphi类该如何转换呢?
大虾帮帮忙,多谢了!