mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
do stuff
This commit is contained in:
parent
c738e6ced8
commit
50ca206428
@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user