mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 04:29:13 +12:00
Add hydra core icon
This commit is contained in:
parent
3ea29de2ee
commit
9178afea64
4 changed files with 1091 additions and 4 deletions
|
@ -1,10 +1,15 @@
|
|||
#include <emulator.hpp>
|
||||
#include <hydra/core.hxx>
|
||||
#include <renderer_gl/renderer_gl.hpp>
|
||||
|
||||
#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
|
||||
public:
|
||||
HydraCore();
|
||||
|
@ -29,6 +34,10 @@ class HC_GLOBAL HydraCore final : public hydra::IBase, public hydra::IOpenGlRend
|
|||
void setPollInputCallback(void (*callback)()) 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;
|
||||
RendererGL* renderer;
|
||||
void (*pollInputCallback)() = nullptr;
|
||||
|
@ -122,3 +131,6 @@ HC_API const char* getInfo(hydra::InfoType type) {
|
|||
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]; }
|
Loading…
Add table
Add a link
Reference in a new issue