|
|
我找到????例,???一下若以2D的??虻脑?,哪一??程式比?好,?槭颤N?
Draw2Dzip,Draw3D.zip哪一??比??合2D??蚰?
http://www.vchelp.net/cndevforum/subject_view.asp?subject_id=160388&forum_id=28
//Draw2D
// The 2-D vertex format and descriptor
typedef struct {
FLOAT x, y, z; // 2-D coordinates
FLOAT rhw; // rhw
FLOAT u, v; // Texture coordinates
} sVertex;
#define VERTEXFVF (D3DFVF_XYZRHW | D3DFVF_TEX1)
//Draw3D
// The 3-D vertex format and descriptor
typedef struct {
FLOAT x, y, z; // 3-D coordinates
FLOAT u, v; // Texture coordinates
} sVertex;
#define VERTEXFVF (D3DFVF_XYZ | D3DFVF_TEX1)
|
|