mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
Add hydra core icon
This commit is contained in:
parent
3ea29de2ee
commit
9178afea64
4 changed files with 1091 additions and 4 deletions
|
@ -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
|
@ -1 +1 @@
|
||||||
Subproject commit 5b7b38be0507ae2f4cc7026b3897f3db0b1bbc7e
|
Subproject commit a1bf28e2e4a8bd10aeb9f0228c5bb669f17c6bfe
|
Loading…
Add table
Reference in a new issue