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.
63 lines
1.3 KiB
63 lines
1.3 KiB
#pragma once
|
|
|
|
#include "ofMain.h"
|
|
#include "FboSource.h"
|
|
#include "Application.h"
|
|
|
|
class ofxPiMapper {
|
|
public:
|
|
enum Mode {
|
|
PRESENTATION_MODE,
|
|
TEXTURE_MODE,
|
|
MAPPING_MODE,
|
|
SOURCE_MODE
|
|
};
|
|
|
|
ofxPiMapper();
|
|
|
|
void setup();
|
|
void update();
|
|
void draw();
|
|
|
|
void keyPressed(int key);
|
|
void keyReleased(int key);
|
|
|
|
void mousePressed(int x, int y, int button);
|
|
void mouseReleased(int x, int y, int button);
|
|
void mouseDragged(int x, int y, int button);
|
|
|
|
void registerFboSource(ofx::piMapper::FboSource & fboSource);
|
|
void registerFboSource(ofx::piMapper::FboSource * fboSource);
|
|
|
|
// Application
|
|
void toggleInfo();
|
|
|
|
// Modes
|
|
void setMode(ofxPiMapper::Mode m);
|
|
ofxPiMapper::Mode getMode();
|
|
|
|
// Project
|
|
void saveProject();
|
|
bool loadProject(string filename);
|
|
|
|
// Presets
|
|
unsigned int getNumPresets();
|
|
unsigned int getActivePresetIndex();
|
|
void setPreset(unsigned int i);
|
|
void setNextPreset();
|
|
void cloneActivePreset();
|
|
void eraseActivePreset();
|
|
|
|
// Surfaces, active preset
|
|
unsigned int getNumSurfaces();
|
|
void selectSurface(int i);
|
|
void selectNextSurface();
|
|
void selectPrevSurface();
|
|
void selectNextVertex();
|
|
void selectPrevVertex();
|
|
void togglePauseForSurface(unsigned int i);
|
|
void moveSelection(ofVec2f by);
|
|
|
|
private:
|
|
ofx::piMapper::Application _application;
|
|
};
|
|
|