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.
40 lines
899 B
40 lines
899 B
#ifndef H_OFX_SOURCES_EDITOR
|
|
#define H_OFX_SOURCES_EDITOR
|
|
|
|
#include "ofGraphics.h"
|
|
#include "ofEvents.h"
|
|
#include "ofxSurfaceManager.h"
|
|
#include "ofxRadioList.h"
|
|
|
|
#define DEFAULT_IMAGES_DIR "sources/images/";
|
|
|
|
class ofxSourcesEditor
|
|
{
|
|
public:
|
|
ofxSourcesEditor();
|
|
~ofxSourcesEditor();
|
|
|
|
void registerAppEvents();
|
|
void unregisterAppEvents();
|
|
|
|
void setup(ofEventArgs& args);
|
|
void draw();
|
|
void loadImage( string name, string path );
|
|
void disable();
|
|
void enable();
|
|
void setSurfaceManager(ofxSurfaceManager* newSurfaceManager);
|
|
void selectImageSourceRadioButton(string name);
|
|
|
|
int getLoadedTexCount();
|
|
ofTexture* getTexture(int index);
|
|
|
|
private:
|
|
ofxSurfaceManager* surfaceManager;
|
|
ofxRadioList* gui;
|
|
string defImgDir;
|
|
void guiEvent(string &imageName);
|
|
vector<ofImage*> images;
|
|
vector<string> imageNames;
|
|
};
|
|
|
|
#endif
|