1 #include "..\include\raMain.h" 6 :
raEntity(dx, mat ? mat : new
raMaterial(dx,
"raEffects\\MyEngine.fx",
"RenderWithColor"))
13 for(
int i = 0; i < Level + 2; i++)
35 float r = (float) rand() / RAND_MAX;
36 float g = (float) rand() / RAND_MAX;
37 float b = (float) rand() / RAND_MAX;
43 vertices[n].
color[0] = r;
44 vertices[n].
color[1] = 1.0f;
45 vertices[n].
color[2] = b;
52 vertices[n].
color[0] = r;
53 vertices[n].
color[1] = 1.0f;
54 vertices[n].
color[2] = b;
76 for(
int i = 0; i < 4; i++)
83 D3DXVec3Transform((D3DXVECTOR4*)&v, (D3DXVECTOR3*)&d, (D3DXMATRIX*)&m[i]);
84 D3DXVECTOR3 v1 = (D3DXVECTOR3)v;
86 makeChildren(vertices, v0 + d, l * v1, n, level - 1);
VERTEXPOSITIONCOLOR * m_pVertices
RAPI raMatrix raMatrixRotationX(const float f)
SDKMESH_SUBSET * m_pSubsets
RAPI raMatrix raMatrixRotationZ(const float f)
virtual void SetupVertices()
raFractal(raSmartPointer< raDirectX > dx, int Level, bool bRandom=true, raMaterial *mat=(NULL))