ofxPiMapper fixed for C++17 & oF 12.0
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.
 
 

71 lines
1.4 KiB

#pragma once
#include "ofMain.h"
#include "SurfaceManager.h"
#include "MediaServer.h"
#include "FboSource.h"
#include "BaseCmd.h"
#include "CmdManager.h"
#include "RmSurfaceCmd.h"
#include "Application.h"
#include "Info.h"
#include "PresentationMode.h"
#include "TextureMappingMode.h"
#include "ProjectionMappingMode.h"
#include "SourceSelectionMode.h"
#include "BaseSource.h"
#include "SourceType.h"
namespace ofx {
namespace piMapper {
class Application;
}
}
class ofxPiMapper {
public:
enum Mode {
PRESENTATION_MODE,
TEXTURE_MODE,
MAPPING_MODE,
SOURCE_MODE
};
ofxPiMapper();
void setup();
void update();
void draw();
void registerFboSource(ofx::piMapper::FboSource & fboSource);
void registerFboSource(ofx::piMapper::FboSource * fboSource);
// Modes
void setMode(ofxPiMapper::Mode m);
ofxPiMapper::Mode getMode();
// 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);
bool loadXmlSettings(string fileName);
private:
ofx::piMapper::Application _application;
};