mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-12-04 19:23:28 +01:00
update strat now has name
This commit is contained in:
parent
77b43c572e
commit
d22ad0d913
2
external/imgui/CMakeLists.txt
vendored
2
external/imgui/CMakeLists.txt
vendored
@ -51,6 +51,8 @@ target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
#target_include_directories(imgui PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/imgui")
|
||||
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/imgui") # im sad
|
||||
|
||||
target_compile_definitions(imgui PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1)
|
||||
|
||||
if(EMSCRIPTEN)
|
||||
set_target_properties(imgui PROPERTIES COMPILE_FLAGS "-s USE_SDL=2 -s USE_WEBGL2=1 -s FULL_ES2=1 -s FULL_ES3=1")
|
||||
set_target_properties(imgui PROPERTIES LINK_FLAGS "-s USE_SDL=2 -s USE_WEBGL2=1 -s FULL_ES2=1 -s FULL_ES3=1")
|
||||
|
@ -58,10 +58,7 @@ class Engine {
|
||||
// called from destructor or explicitly
|
||||
void cleanup(void);
|
||||
|
||||
//[[nodiscard]] float getFixedDeltaTime(void) const { return _fixed_delta_time; };
|
||||
|
||||
void update(void);
|
||||
//void fixedUpdate(void);
|
||||
|
||||
void run(void); // calls update() until stopped
|
||||
void stop(void);
|
||||
@ -70,7 +67,6 @@ class Engine {
|
||||
std::vector<service_family::family_type> _service_add_order; // ?
|
||||
std::vector<service_family::family_type> _service_enable_order; // ?
|
||||
|
||||
//std::unordered_map<service_family::family_type, std::pair<bool, std::unique_ptr<Service>>> _services;
|
||||
std::unordered_map<
|
||||
service_family::family_type,
|
||||
std::shared_ptr<std::pair<
|
||||
|
@ -49,6 +49,8 @@ class SingleThreadedDefault : public MM::UpdateStrategies::UpdateStrategy {
|
||||
SingleThreadedDefault(void) = default;
|
||||
virtual ~SingleThreadedDefault(void);
|
||||
|
||||
const char* name(void) override { return "SingleThreadedDefault"; }
|
||||
|
||||
protected:
|
||||
bool registerService(const entt::id_type s_id, std::vector<UpdateCreationInfo>&& info_array) override;
|
||||
|
||||
|
@ -37,6 +37,8 @@ class UpdateStrategy {
|
||||
public:
|
||||
virtual ~UpdateStrategy(void) {}
|
||||
|
||||
virtual const char* name(void) = 0;
|
||||
|
||||
protected: // the engine facing interface
|
||||
friend ::MM::Engine;
|
||||
|
||||
|
@ -15,6 +15,8 @@ using namespace entt::literals;
|
||||
|
||||
class MockUpdateStrategy : public MM::UpdateStrategies::UpdateStrategy {
|
||||
public:
|
||||
const char* name(void) override { return "MockUpdateStrategy"; }
|
||||
|
||||
MOCK_METHOD(
|
||||
bool,
|
||||
registerService,
|
||||
|
Loading…
Reference in New Issue
Block a user