mirror of
https://github.com/NoelFB/blah.git
synced 2025-06-29 19:25:26 +08:00
Add required headers to compile on macos
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#include <blah/graphics/material.h>
|
||||
#include <blah/math/calc.h>
|
||||
#include <blah/core/app.h>
|
||||
#include <cmath>
|
||||
|
||||
using namespace Blah;
|
||||
namespace
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <blah/graphics/material.h>
|
||||
#include <blah/core/log.h>
|
||||
#include <cstring>
|
||||
|
||||
using namespace Blah;
|
||||
|
||||
|
@ -114,7 +114,9 @@ namespace Blah
|
||||
void gl_context_make_current(void* context);
|
||||
void gl_context_destroy(void* context);
|
||||
|
||||
#if _WIN32
|
||||
// D3D11 Methods
|
||||
void* d3d11_get_hwnd();
|
||||
#endif
|
||||
}
|
||||
}
|
@ -649,6 +649,7 @@ void PlatformBackend::gl_context_destroy(void* context)
|
||||
SDL_GL_DeleteContext(context);
|
||||
}
|
||||
|
||||
#if _WIN32
|
||||
void* PlatformBackend::d3d11_get_hwnd()
|
||||
{
|
||||
SDL_SysWMinfo info;
|
||||
@ -656,5 +657,5 @@ void* PlatformBackend::d3d11_get_hwnd()
|
||||
SDL_GetWindowWMInfo(window, &info);
|
||||
return info.info.win.window;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // BLAH_USE_SDL2
|
||||
|
Reference in New Issue
Block a user