Renamed files from direcx to dx11.
This commit is contained in:
parent
d0a18fcdb7
commit
c81d9b4e97
|
@ -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
|
// 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
|
// 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;
|
texid = 0;
|
||||||
|
|
||||||
if ( texture->pointer ) {
|
if ( texture->pointer ) {
|
|
@ -658,7 +658,7 @@ os_popup_error(char *title, char *message){
|
||||||
#include "4ed_font_provider_freetype.cpp"
|
#include "4ed_font_provider_freetype.cpp"
|
||||||
|
|
||||||
#if defined( WIN32_DX11 )
|
#if defined( WIN32_DX11 )
|
||||||
#include "win32_directx.cpp"
|
#include "win32_dx11.cpp"
|
||||||
#else
|
#else
|
||||||
#include "win32_opengl.cpp"
|
#include "win32_opengl.cpp"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
IDXGIDebug1* dxgi_debug;
|
IDXGIDebug1* dxgi_debug;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "4ed_directx_render.cpp"
|
#include "4ed_dx11_render.cpp"
|
||||||
|
|
||||||
internal LRESULT CALL_CONVENTION
|
internal LRESULT CALL_CONVENTION
|
||||||
win32_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
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
|
// 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
|
// 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
|
// 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.
|
// exiting the function so we should be good. Still we assume it's only ever call once.
|
||||||
Assert( first_call );
|
Assert( first_call );
|
Loading…
Reference in New Issue