39 lines
645 B
C++
39 lines
645 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "BitmapFont.h"
|
|
#include "GameCatalog.h"
|
|
#include "GameCarousel.h"
|
|
|
|
namespace Core
|
|
{
|
|
class DrawContext;
|
|
}
|
|
|
|
namespace Platform
|
|
{
|
|
class IPointerInput;
|
|
}
|
|
|
|
namespace Desktop
|
|
{
|
|
class DesktopApp
|
|
{
|
|
private:
|
|
Platform::IPointerInput* pointerInput;
|
|
GameCarousel carousel;
|
|
RenderData::BitmapFont font;
|
|
int32_t screenWidth;
|
|
int32_t screenHeight;
|
|
const GameEntry* pendingLaunchGame;
|
|
|
|
public:
|
|
DesktopApp(int32_t width, int32_t height, Platform::IPointerInput* pointerInput);
|
|
|
|
void update(uint32_t deltaMs);
|
|
void draw(Core::DrawContext& ctx);
|
|
const GameEntry* consume_pending_launch();
|
|
};
|
|
}
|