1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
aVertex[0].vPosition = tbVector3(-1.0f, -1.0f, 0.0f);
aVertex[1].vPosition = tbVector3(-1.0f, 1.0f, 0.0f);
aVertex[2].vPosition = tbVector3( 1.0f, -1.0f, 0.0f);
aVertex[3].vPosition = tbVector3( 1.0f, 1.0f, 0.0f);
aVertex[0].vTexture = tbVector3(0.0f, 1.0f, this->passedTime * 0.25f);
aVertex[1].vTexture = tbVector3(0.0f, 0.0f, this->passedTime * 0.25f);
aVertex[2].vTexture = tbVector3(1.0f, 1.0f, this->passedTime * 0.25f);
aVertex[3].vTexture = tbVector3(1.0f, 0.0f, this->passedTime * 0.25f);
D3D.SetFVF(SVertex::dwFVF);
D3D.SetRS(D3DRS_LIGHTING, FALSE);
D3D.SetRS(D3DRS_ZENABLE, TRUE);
D3D.SetRS(D3DRS_ZWRITEENABLE, FALSE);
D3D.SetRS(D3DRS_DITHERENABLE, TRUE);
D3D.SetTexture(0, this->testTexture); // falls auskommentiert wird es nicht korrekt angezeigt
D3D.SetTexture(0, this->texture);
D3D->DrawPrimitiveUP(
D3DPT_TRIANGLESTRIP,
2,
aVertex,
sizeof(SVertex));
|