Parcourir la source

device: remove CROWN_TOOLS

Daniele Bartolini il y a 2 ans
Parent
commit
42b9eb7801
2 fichiers modifiés avec 0 ajouts et 27 suppressions
  1. 0 4
      src/config.h
  2. 0 23
      src/device/device.cpp

+ 0 - 4
src/config.h

@@ -27,10 +27,6 @@
 	&& (CROWN_PLATFORM_LINUX || CROWN_PLATFORM_WINDOWS)       \
 	? 1 : 0)
 
-#ifndef CROWN_TOOLS
-	#define CROWN_TOOLS 0
-#endif
-
 #ifndef CROWN_BUILD_UNIT_TESTS
 	#define CROWN_BUILD_UNIT_TESTS 1
 #endif

+ 0 - 23
src/device/device.cpp

@@ -72,13 +72,6 @@ LOG_SYSTEM(DEVICE, "device")
 
 namespace crown
 {
-#if CROWN_TOOLS
-extern void tool_init(void);
-extern void tool_update(float);
-extern void tool_shutdown(void);
-extern bool tool_process_events();
-#endif
-
 extern bool next_event(OsEvent &ev);
 
 struct BgfxCallback : public bgfx::CallbackI
@@ -232,10 +225,6 @@ Device::Device(const DeviceOptions &opts, ConsoleServer &cs)
 
 bool Device::process_events(bool vsync)
 {
-#if CROWN_TOOLS
-	return tool_process_events();
-#endif
-
 	bool exit = false;
 	bool reset = false;
 
@@ -448,10 +437,6 @@ void Device::run()
 
 	graph_globals::init(_allocator, *_shader_manager, *_console_server);
 
-#if CROWN_TOOLS
-	tool_init();
-#endif
-
 	logi(DEVICE, "Initialized in " TIME_FMT, time::seconds(time::now() - run_t0));
 
 	_lua_environment->call_global("init");
@@ -521,19 +506,11 @@ void Device::run()
 
 		graph_globals::draw_all(_width, _height);
 
-#if CROWN_TOOLS
-		tool_update(dt);
-#else
 		_pipeline->render(*_shader_manager, STRING_ID_32("blit", UINT32_C(0x045f02bb)), VIEW_BLIT, _width, _height);
-#endif
 
 		bgfx::frame();
 	}
 
-#if CROWN_TOOLS
-	tool_shutdown();
-#endif
-
 	_lua_environment->call_global("shutdown");
 
 	boot_package->unload();