somewhat fixed threadpool

This commit is contained in:
Dynamitos committed 2021-11-13 19:28:18 +01:00
1 parent 01049019fd
commit ad09492e3e
20 files changed
+71 -90

No files matched your search

+2 -1
View File
@@ -8,7 +8,7 @@ DECLARE_REF(Window)
class View
{
public:
View(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &createInfo);
View(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &createInfo, std::string name);
virtual ~View();
// These are called from the view thread, and handle updating game data
@@ -28,6 +28,7 @@ protected:
Gfx::PGraphics graphics;
Gfx::PViewport viewport;
PWindow owner;
std::string name;
virtual void keyCallback(KeyCode code, InputAction action, KeyModifier modifier) = 0;
virtual void mouseMoveCallback(double xPos, double yPos) = 0;