Daniele Bartolini %!s(int64=10) %!d(string=hai) anos
pai
achega
87767f6e34
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 3 0
      src/device.cpp
  2. 0 2
      src/device.h

+ 3 - 0
src/device.cpp

@@ -19,6 +19,7 @@
 #include "material_manager.h"
 #include "material_manager.h"
 #include "memory.h"
 #include "memory.h"
 #include "os.h"
 #include "os.h"
+#include "os_event_queue.h"
 #include "path.h"
 #include "path.h"
 #include "physics.h"
 #include "physics.h"
 #include "profiler.h"
 #include "profiler.h"
@@ -40,6 +41,8 @@
 
 
 namespace crown
 namespace crown
 {
 {
+extern bool next_event(OsEvent& ev);
+
 struct BgfxCallback : public bgfx::CallbackI
 struct BgfxCallback : public bgfx::CallbackI
 {
 {
 	virtual void fatal(bgfx::Fatal::Enum _code, const char* _str)
 	virtual void fatal(bgfx::Fatal::Enum _code, const char* _str)

+ 0 - 2
src/device.h

@@ -14,7 +14,6 @@
 #include "input_types.h"
 #include "input_types.h"
 #include "linear_allocator.h"
 #include "linear_allocator.h"
 #include "lua_types.h"
 #include "lua_types.h"
-#include "os_event_queue.h"
 #include "resource_types.h"
 #include "resource_types.h"
 #include "string_id.h"
 #include "string_id.h"
 #include "types.h"
 #include "types.h"
@@ -179,7 +178,6 @@ private:
 	Device& operator=(const Device&);
 	Device& operator=(const Device&);
 };
 };
 
 
-bool next_event(OsEvent& ev);
 void init(const DeviceOptions& opts);
 void init(const DeviceOptions& opts);
 void update();
 void update();
 void shutdown();
 void shutdown();