git.haldean.org ana / 8be87ea src / ui.hpp
8be87ea

Tree @8be87ea (Download .tar.gz)

ui.hpp @8be87earaw · history · blame

#pragma once

#include <glm/glm.hpp>

namespace ana {
struct ui {
    float aspect = 1.f;
    float view = 1.f;
    int width = 1;
    int height = 1;
    glm::vec2 center{0.f, 0.f};

    void set_aspect(int w, int h);
    void view_step(int dir);
    void translate(int xpixels, int ypixels);
};
}