65,211
社区成员
发帖
与我相关
我的任务
分享
class CDXFont
{
....
void Draw3DFont(unsigned int iNum,RECT* rctDraw,float fZoomX,float fZoomY,float fZoomZ,float fRotateX,float fRotateY,float fRotateZ);
....
};
struct stuRotateZoom
{
float RotateX;
float RotateY;
float RotateZ;
float ZoomX;
float ZoomY;
float ZoomZ;
};
class CDXFont
{
....
void Draw3DFont(unsigned int iNum,RECT* rctDraw,stuRotateZoom *RotateZoom);
....
};
class CDXFont
{
....
void Draw3DFont(unsigned int iNum,RECT* rctDraw,D3DXMATRIX* matRotate,D3DXMATRIX* matZoom);
....
};
class CDXFont
{
....
void Draw3DFont( unsigned int iNum,
const RECT* rctDraw,
const D3DVECTOR& matRotate,
const D3DVECTOR& matZoom ); // 引用比指针安全
....
};
CDXFont.Draw3DFont( 1, RECT(100, 100, 200, 200 ), D3DVECTOR(x1, y1, z1), D3DVECTOR(x2,y2,z2) );