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:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
|
// PHASE 1:
BOOL Spiel_Initialisieren(void)
{
// Zu erledigen:
// Initialisierungen, CPUChecker Starten
MyCPU = m_pFCF.Find_CPU_Featcher();
// Auswerten, der Boolvariablen bMMX, bSSE und bSSE2
if(!(MyCPU.bMMX == false))
{
MessageBox(NULL,"CPU-Checker hat MMX auf Ihre CPU gefunden!","MMX gefunden!",MB_OK);
} else
{
MessageBox(NULL,"CPU-Checker konnte kein MMX auf Ihre CPU finden!","MMX nicht gefunden!",MB_OK);
}
if(!(MyCPU.bSSE == false))
{
MessageBox(NULL,"CPU-Checker hat SSE auf Ihre CPU gefunden!","SSE gefunden!",MB_OK);
} else
{
MessageBox(NULL,"CPU-Checker konnte kein SSE auf Ihre CPU finden!","SSE nicht gefunden!",MB_OK);
}
if(!(MyCPU.bSSE2 == false))
{
MessageBox(NULL,"CPU-Checker hat SSE2 auf Ihre CPU gefunden!","SSE2 gefunden!",MB_OK);
} else
{
MessageBox(NULL,"CPU-Checker konnte kein SSE2 auf Ihre CPU finden!","SSE2 nicht gefunden!",MB_OK);
}
// Einheitsmatrix setzen.
m_WorldMat = m_Matrix.matrixIdentity(); //m_WorldMat ist abgeleitet von der Structur, womit ich vorher probleme hatte. So läuft es aber. Nur Warum?
m_RotaMatX = m_Matrix.matrixIdentity();
m_RotaMatY = m_Matrix.matrixIdentity();
m_ErgebMat = m_Matrix.matrixIdentity();
// WorldMatrix berechnen
m_WorldMat = m_Matrix.matrixTranslation(1.0f,0.0f,-0.5f);
// Werte setzen
m_WorldMat._11 = m_WorldMat._22 = m_WorldMat._33 = -9.9f;
m_WorldMat = m_Matrix.matrixProjection(3.0f,2.0f,15.0f,-2.5f);
// Rotationmatrix in X und Y berechen
m_RotaMatX = m_Matrix.matrixRotaX(12.8f);
m_RotaMatY = m_Matrix.matrixRotaY(12.8f);
// Addition zweier Matrixen
m_ErgebMat = m_Matrix.matrixAdd(m_RotaMatX,m_RotaMatY);
return TRUE;
}
/*----------------------------------------------------------------*/
|