Skip to content

Commit

Permalink
Remove DX9 leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alayan-stk-2 committed Dec 16, 2023
1 parent c11a723 commit 4525411
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 463 deletions.
1 change: 0 additions & 1 deletion lib/graphics_engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ set(GE_SOURCES
src/ge_compressor_bptc_bc7.cpp
src/ge_compressor_s3tc_bc3.cpp
src/ge_culling_tool.cpp
src/ge_dx9_texture.cpp
src/ge_main.cpp
src/ge_texture.cpp
src/ge_vma.cpp
Expand Down
229 changes: 0 additions & 229 deletions lib/graphics_engine/src/ge_dx9_texture.cpp

This file was deleted.

88 changes: 0 additions & 88 deletions lib/graphics_engine/src/ge_dx9_texture.hpp

This file was deleted.

13 changes: 0 additions & 13 deletions lib/graphics_engine/src/ge_texture.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "ge_main.hpp"
#include "ge_dx9_texture.hpp"
#include "ge_gl_texture.hpp"
#include "ge_vulkan_texture.hpp"
#include "ge_texture.hpp"
Expand Down Expand Up @@ -97,10 +96,6 @@ irr::video::ITexture* createTexture(const std::string& path,
case video::EDT_OPENGL:
case video::EDT_OGLES2:
return new GEGLTexture(path, image_mani);
#ifdef _IRR_COMPILE_WITH_DIRECT3D_9_
case video::EDT_DIRECT3D9:
return new GEDX9Texture(path, image_mani);
#endif
case video::EDT_VULKAN:
return new GEVulkanTexture(path, image_mani);
default:
Expand All @@ -117,10 +112,6 @@ irr::video::ITexture* createTexture(video::IImage* img,
case video::EDT_OPENGL:
case video::EDT_OGLES2:
return new GEGLTexture(img, name);
#ifdef _IRR_COMPILE_WITH_DIRECT3D_9_
case video::EDT_DIRECT3D9:
return new GEDX9Texture(img, name);
#endif
case video::EDT_VULKAN:
return new GEVulkanTexture(img, name);
default:
Expand All @@ -137,10 +128,6 @@ irr::video::ITexture* createFontTexture(const std::string& name,
case video::EDT_OPENGL:
case video::EDT_OGLES2:
return new GEGLTexture(name, size, single_channel);
#ifdef _IRR_COMPILE_WITH_DIRECT3D_9_
case video::EDT_DIRECT3D9:
return new GEDX9Texture(name, size);
#endif
case video::EDT_VULKAN:
return new GEVulkanTexture(name, size, single_channel);
default:
Expand Down
1 change: 0 additions & 1 deletion lib/irrlicht/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ else()
add_definitions(-DNO_IRR_COMPILE_WITH_X11_)
add_definitions(-DNO_IRR_COMPILE_WITH_WAYLAND_DEVICE_)
add_definitions(-DNO_IRR_COMPILE_WITH_SDL_DEVICE_)
add_definitions(-DNO_IRR_COMPILE_WITH_DIRECT3D_9_)
add_definitions(-DNO_IRR_COMPILE_WITH_VULKAN_)
endif()

Expand Down
10 changes: 0 additions & 10 deletions lib/irrlicht/include/EDriverTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ namespace video
contribution. */
EDT_BURNINGSVIDEO,

//! Direct3D8 device, only available on Win32 platforms.
/** Performs hardware accelerated rendering of 3D and 2D
primitives. */
EDT_DIRECT3D8,

//! Direct3D 9 device, only available on Win32 platforms.
/** Performs hardware accelerated rendering of 3D and 2D
primitives. */
EDT_DIRECT3D9,

//! OpenGL device, available on most platforms.
/** Performs hardware accelerated rendering of 3D and 2D
primitives. */
Expand Down
2 changes: 1 addition & 1 deletion lib/irrlicht/include/IVideoModeList.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace video
/** You can get a list via IrrlichtDevice::getVideoModeList(). If you are confused
now, because you think you have to create an Irrlicht Device with a video
mode before being able to get the video mode list, let me tell you that
there is no need to start up an Irrlicht Device with EDT_DIRECT3D8, EDT_OPENGL or
there is no need to start up an Irrlicht Device with EDT_OPENGL or
EDT_SOFTWARE: For this (and for lots of other reasons) the null device,
EDT_NULL exists.*/
class IVideoModeList : public virtual IReferenceCounted
Expand Down
Loading

0 comments on commit 4525411

Please sign in to comment.