Files
panopainter/engine/app.h

26 lines
492 B
C++

#pragma once
#include "shader.h"
#include "shape.h"
#include "texture.h"
#include "layout.h"
#include "font.h"
class App
{
Sampler sampler;
Texture2D tex;
LayoutManager layout;
public:
static App I;
float width;
float height;
void init();
void create();
void update(float dt);
void resize(float w, float h);
void mouse_down(int button, float x, float y);
void mouse_move(float x, float y);
void mouse_up(int button, float x, float y);
};