From c81d9b4e970ff39bc0ad3ce5f0a75b563f3298ce Mon Sep 17 00:00:00 2001 From: Simon Anciaux <14198779+mrmixer@users.noreply.github.com> Date: Wed, 28 Feb 2024 18:06:53 +0100 Subject: [PATCH] Renamed files from direcx to dx11. --- .../{4ed_directx_render.cpp => 4ed_dx11_render.cpp} | 2 +- code/platform_win32/win32_4ed.cpp | 2 +- code/platform_win32/{win32_directx.cpp => win32_dx11.cpp} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename code/platform_win32/{4ed_directx_render.cpp => 4ed_dx11_render.cpp} (99%) rename code/platform_win32/{win32_directx.cpp => win32_dx11.cpp} (99%) diff --git a/code/platform_win32/4ed_directx_render.cpp b/code/platform_win32/4ed_dx11_render.cpp similarity index 99% rename from code/platform_win32/4ed_directx_render.cpp rename to code/platform_win32/4ed_dx11_render.cpp index 81d3974a..b64c9116 100644 --- a/code/platform_win32/4ed_directx_render.cpp +++ b/code/platform_win32/4ed_dx11_render.cpp @@ -123,7 +123,7 @@ gl__get_texture(Vec3_i32 dim, Texture_Kind texture_kind){ // NOTE(simon, 28/02/24): When we fail, we donc decrement the texture count, but the // loop at the beginning of the function will reuse texture when - // texture_count == DIRECTX_MAX_TEXTURE_COUNT. + // texture_count == DX11_MAX_TEXTURE_COUNT. texid = 0; if ( texture->pointer ) { diff --git a/code/platform_win32/win32_4ed.cpp b/code/platform_win32/win32_4ed.cpp index c2c6bd53..a7686512 100644 --- a/code/platform_win32/win32_4ed.cpp +++ b/code/platform_win32/win32_4ed.cpp @@ -658,7 +658,7 @@ os_popup_error(char *title, char *message){ #include "4ed_font_provider_freetype.cpp" #if defined( WIN32_DX11 ) -#include "win32_directx.cpp" +#include "win32_dx11.cpp" #else #include "win32_opengl.cpp" #endif diff --git a/code/platform_win32/win32_directx.cpp b/code/platform_win32/win32_dx11.cpp similarity index 99% rename from code/platform_win32/win32_directx.cpp rename to code/platform_win32/win32_dx11.cpp index 1f6869ba..65cbb533 100644 --- a/code/platform_win32/win32_directx.cpp +++ b/code/platform_win32/win32_dx11.cpp @@ -13,7 +13,7 @@ IDXGIDebug1* dxgi_debug; #endif -#include "4ed_directx_render.cpp" +#include "4ed_dx11_render.cpp" internal LRESULT CALL_CONVENTION win32_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); @@ -59,7 +59,7 @@ win32_gl_create_window(HWND *wnd_out, DWORD style, RECT rect){ // NOTE(simon, 28/02/24): There is nothing in the code suggesting that this function could // be called several time. If it is called several time, we would need to make sure that - // we cleaned up previous DirectX resources. The reason this function could be called twice + // we cleaned up previous dx11 resources. The reason this function could be called twice // would be if it failed previously, and in that case we clean up everything before // exiting the function so we should be good. Still we assume it's only ever call once. Assert( first_call );