forked from kidanger/vpv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sequence.hpp
58 lines (43 loc) · 1011 Bytes
/
Sequence.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <string>
#include <vector>
#include <map>
#include "imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#include "imgui_internal.h"
#include "Texture.hpp"
struct View;
struct Player;
struct Colormap;
struct Image;
struct Sequence {
std::string ID;
std::string glob;
std::string glob_;
std::vector<std::string> filenames;
bool valid;
bool force_reupload;
int loadedFrame;
ImRect loadedRect;
Texture texture;
View* view;
Player* player;
Colormap* colormap;
const Image* image;
char editprog[4096];
enum EditType {
PLAMBDA,
GMIC,
OCTAVE,
} edittype;
Sequence();
void loadFilenames();
void loadTextureIfNeeded();
void forgetImage();
void requestTextureArea(ImRect rect);
void autoScaleAndBias();
void smartAutoScaleAndBias(ImVec2 p1, ImVec2 p2);
const Image* getCurrentImage(bool noedit=false);
const std::string getTitle() const;
void showInfo() const;
};