This commit is contained in:
Bailey Harrison 2022-10-02 13:56:13 +01:00
parent c738e6ced8
commit 50ca206428
2 changed files with 12 additions and 4 deletions

View File

@ -10,17 +10,21 @@ struct SDL_Window;
namespace engine::gfx { namespace engine::gfx {
struct ENGINE_API GFXDevice { class ENGINE_API GFXDevice {
public:
GFXDevice(AppInfo appInfo, SDL_Window* window); GFXDevice(AppInfo appInfo, SDL_Window* window);
GFXDevice(const GFXDevice&) = delete; GFXDevice(const GFXDevice&) = delete;
GFXDevice& operator=(const GFXDevice&) = delete; GFXDevice& operator=(const GFXDevice&) = delete;
~GFXDevice(); ~GFXDevice();
// submit command lists and draw to the screen
void draw();
private: private:
class Impl; class Impl;
std::unique_ptr<Impl> pimpl; std::unique_ptr<Impl> m_pimpl;
}; };

View File

@ -810,8 +810,7 @@ namespace engine::gfx {
throw std::runtime_error("The loaded Vulkan version must be at least 1.3"); throw std::runtime_error("The loaded Vulkan version must be at least 1.3");
} }
pimpl = std::make_unique<Impl>(appInfo, window); m_pimpl = std::make_unique<Impl>(appInfo, window);
} }
@ -820,6 +819,11 @@ namespace engine::gfx {
TRACE("Destroying GFXDevice..."); TRACE("Destroying GFXDevice...");
} }
void GFXDevice::draw()
{
TRACE("Drawing");
}
} }
#endif #endif