You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
424 B
25 lines
424 B
#pragma once
|
|
#include "screen.hpp"
|
|
#include "framebuffer.hpp"
|
|
#include "text.hpp"
|
|
#include "document.hpp"
|
|
|
|
struct Engine {
|
|
Deck& deck;
|
|
FrameBuffer framebuffer;
|
|
Screen screen;
|
|
Text text{.font_size=100};
|
|
int at_slide = 0;
|
|
float mouse_x = 0.0f;
|
|
float mouse_y = 0.0f;
|
|
|
|
Engine(Deck& deck);
|
|
|
|
void render();
|
|
void change_slide(int dir);
|
|
|
|
void mouse(float x, float y) {
|
|
mouse_x = x;
|
|
mouse_y = y;
|
|
}
|
|
};
|
|
|