mirror of
https://github.com/XITRIX/NXKit.git
synced 2026-05-30 11:46:52 +00:00
31 lines
484 B
C++
31 lines
484 B
C++
#pragma once
|
|
|
|
#include <SDL_events.h>
|
|
#include "include/gpu/ganesh/GrDirectContext.h"
|
|
#include "tools/window/WindowContext.h"
|
|
#include "SkiaCtx.h"
|
|
#include "UIView.h"
|
|
|
|
namespace NXKit {
|
|
|
|
class Application {
|
|
public:
|
|
Application();
|
|
~Application();
|
|
|
|
private:
|
|
sk_sp<SkTypeface> typeface;
|
|
float fRotationAngle = 0;
|
|
|
|
std::shared_ptr<UIView> keyWindow;
|
|
|
|
std::unique_ptr<SkiaCtx> skiaCtx;
|
|
|
|
static Application* shared;
|
|
|
|
bool runLoop();
|
|
void render();
|
|
};
|
|
|
|
}
|