Add hydra core icon
This commit is contained in:
@@ -225,7 +225,7 @@ set(HEADER_FILES include/emulator.hpp include/helpers.hpp include/termcolor.hpp
|
|||||||
include/applets/applet.hpp include/applets/mii_selector.hpp include/math_util.hpp include/services/soc.hpp
|
include/applets/applet.hpp include/applets/mii_selector.hpp include/math_util.hpp include/services/soc.hpp
|
||||||
include/services/news_u.hpp include/applets/software_keyboard.hpp include/applets/applet_manager.hpp include/fs/archive_user_save_data.hpp
|
include/services/news_u.hpp include/applets/software_keyboard.hpp include/applets/applet_manager.hpp include/fs/archive_user_save_data.hpp
|
||||||
include/services/amiibo_device.hpp include/services/nfc_types.hpp include/swap.hpp include/services/csnd.hpp include/services/nwm_uds.hpp
|
include/services/amiibo_device.hpp include/services/nfc_types.hpp include/swap.hpp include/services/csnd.hpp include/services/nwm_uds.hpp
|
||||||
include/fs/archive_system_save_data.hpp include/lua_manager.hpp include/memory_mapped_file.hpp
|
include/fs/archive_system_save_data.hpp include/lua_manager.hpp include/memory_mapped_file.hpp include/hydra_icon.hpp
|
||||||
)
|
)
|
||||||
|
|
||||||
cmrc_add_resource_library(
|
cmrc_add_resource_library(
|
||||||
|
|||||||
1075
include/hydra_icon.hpp
Normal file
1075
include/hydra_icon.hpp
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,15 @@
|
|||||||
#include <emulator.hpp>
|
#include <emulator.hpp>
|
||||||
#include <hydra/core.hxx>
|
#include <hydra/core.hxx>
|
||||||
#include <renderer_gl/renderer_gl.hpp>
|
#include <renderer_gl/renderer_gl.hpp>
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
||||||
class HC_GLOBAL HydraCore final : public hydra::IBase, public hydra::IOpenGlRendered, public hydra::IFrontendDriven, public hydra::IInput {
|
#include "hydra_icon.hpp"
|
||||||
|
|
||||||
|
class HC_GLOBAL HydraCore final : public hydra::IBase,
|
||||||
|
public hydra::IOpenGlRendered,
|
||||||
|
public hydra::IFrontendDriven,
|
||||||
|
public hydra::IInput,
|
||||||
|
public hydra::IIcon {
|
||||||
HYDRA_CLASS
|
HYDRA_CLASS
|
||||||
public:
|
public:
|
||||||
HydraCore();
|
HydraCore();
|
||||||
@@ -29,6 +34,10 @@ class HC_GLOBAL HydraCore final : public hydra::IBase, public hydra::IOpenGlRend
|
|||||||
void setPollInputCallback(void (*callback)()) override;
|
void setPollInputCallback(void (*callback)()) override;
|
||||||
void setCheckButtonCallback(int32_t (*callback)(uint32_t player, hydra::ButtonType button)) override;
|
void setCheckButtonCallback(int32_t (*callback)(uint32_t player, hydra::ButtonType button)) override;
|
||||||
|
|
||||||
|
// IICon
|
||||||
|
hydra::Size getIconSize() override;
|
||||||
|
const u8* getIconData() override;
|
||||||
|
|
||||||
std::unique_ptr<Emulator> emulator;
|
std::unique_ptr<Emulator> emulator;
|
||||||
RendererGL* renderer;
|
RendererGL* renderer;
|
||||||
void (*pollInputCallback)() = nullptr;
|
void (*pollInputCallback)() = nullptr;
|
||||||
@@ -122,3 +131,6 @@ HC_API const char* getInfo(hydra::InfoType type) {
|
|||||||
default: return nullptr;
|
default: return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HC_API hydra::Size getIconSize() { return {HYDRA_ICON_WIDTH, HYDRA_ICON_HEIGHT}; }
|
||||||
|
HC_API const u8* getIconData() { return &HYDRA_ICON_DATA[0]; }
|
||||||
2
third_party/hydra_core
vendored
2
third_party/hydra_core
vendored
Submodule third_party/hydra_core updated: 5b7b38be05...a1bf28e2e4
Reference in New Issue
Block a user