int CVideoUpdate::scrHeight=480;\r
int CVideoUpdate::scrBPP=16;\r
\r
-#ifdef WIN32\r
CVideoUpdate::CVideoUpdate()\r
{\r
+#ifdef WIN32\r
d3d = Direct3DCreate9(D3D_SDK_VERSION);\r
\r
D3DPRESENT_PARAMETERS d3dpp;\r
// Get the alpha information solely from the texture.\r
d3ddev->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_SELECTARG1);\r
d3ddev->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_TEXTURE);\r
+#endif // WIN32\r
}\r
\r
CVideoUpdate::~CVideoUpdate()\r
{\r
+#ifdef WIN32\r
if (d3ddev != NULL) d3ddev->Release();\r
if (d3d != NULL) d3d->Release();\r
+#endif // WIN32\r
}\r
\r
bool CVideoUpdate::Start()\r
//hide the mouse cursor\r
SDL_ShowCursor(SDL_DISABLE);\r
*/\r
+#ifdef WIN32\r
d3ddev->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_COLORVALUE(0.0f, 0.4f, 1.0f, 1.0f), 1.0f, 0);\r
\r
d3ddev->BeginScene(); // begins the 3D scene\r
+#endif // WIN32\r
\r
return true;\r
}\r
\r
void CVideoUpdate::Update()\r
{\r
+#ifdef WIN32\r
// end frame\r
d3ddev->EndScene();\r
d3ddev->Present(NULL, NULL, NULL, NULL);\r
// start new frame\r
d3ddev->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_COLORVALUE(0.0f, 0.4f, 1.0f, 1.0f), 1.0f, 0);\r
d3ddev->BeginScene();\r
+#endif // WIN32\r
}\r
\r
void CVideoUpdate::Stop()\r
{\r
// SDL_QuitSubSystem(SDL_INIT_VIDEO);\r
}\r
-#endif // WIN32\r