Commit e65e42d0 authored by hybrid's avatar hybrid

Fix dx8 init to use the params scheme as the other drivers do. This change...

Fix dx8 init to use the params scheme as the other drivers do. This change reverts the last commit and fixes the problem in a different way.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4211 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e13f2d0a
This diff is collapsed.
...@@ -106,9 +106,7 @@ namespace video ...@@ -106,9 +106,7 @@ namespace video
const core::vector3df& end, SColor color = SColor(255,255,255,255)); const core::vector3df& end, SColor color = SColor(255,255,255,255));
//! initialises the Direct3D API //! initialises the Direct3D API
bool initDriver(const core::dimension2d<u32>& screenSize, HWND hwnd, bool initDriver(HWND hwnd, bool pureSoftware);
u32 bits, bool fullScreen, bool pureSoftware,
bool highPrecisionFPU, bool vsync, u8 antiAlias, u32 displayAdapter);
//! \return Returns the name of the video driver. Example: In case of the DIRECT3D8 //! \return Returns the name of the video driver. Example: In case of the DIRECT3D8
//! driver, it would return "Direct3D8.1". //! driver, it would return "Direct3D8.1".
...@@ -297,7 +295,6 @@ namespace video ...@@ -297,7 +295,6 @@ namespace video
SMaterial Material, LastMaterial; SMaterial Material, LastMaterial;
bool ResetRenderStates; // bool to make all renderstates be reseted if set. bool ResetRenderStates; // bool to make all renderstates be reseted if set.
bool Transformation3DChanged; bool Transformation3DChanged;
bool StencilBuffer;
const ITexture* CurrentTexture[MATERIAL_MAX_TEXTURES]; const ITexture* CurrentTexture[MATERIAL_MAX_TEXTURES];
core::matrix4 Matrices[ETS_COUNT]; // matrices of the 3d mode we need to restore when we switch back from the 2d mode. core::matrix4 Matrices[ETS_COUNT]; // matrices of the 3d mode we need to restore when we switch back from the 2d mode.
...@@ -308,7 +305,6 @@ namespace video ...@@ -308,7 +305,6 @@ namespace video
IDirect3DSurface8* PrevRenderTarget; IDirect3DSurface8* PrevRenderTarget;
core::dimension2d<u32> CurrentRendertargetSize; core::dimension2d<u32> CurrentRendertargetSize;
HWND WindowId;
core::rect<s32>* SceneSourceRect; core::rect<s32>* SceneSourceRect;
D3DCAPS8 Caps; D3DCAPS8 Caps;
...@@ -326,7 +322,7 @@ namespace video ...@@ -326,7 +322,7 @@ namespace video
SColorf AmbientLight; SColorf AmbientLight;
u32 DisplayAdapter; SIrrlichtCreationParameters Params;
}; };
} // end namespace video } // end namespace video
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment