diff --git a/src/ofxEditorType.h b/src/ofxEditorType.h new file mode 100644 index 0000000..cc0c1c8 --- /dev/null +++ b/src/ofxEditorType.h @@ -0,0 +1,12 @@ +#ifndef H_OFX_EDITOR_TYPE +#define H_OFX_EDITOR_TYPE + +struct ofxEditorType +{ + enum { + TEXTURE, + PROJECTION + }; +}; + +#endif \ No newline at end of file diff --git a/src/ofxGuiMode.h b/src/ofxGuiMode.h new file mode 100644 index 0000000..a022b5c --- /dev/null +++ b/src/ofxGuiMode.h @@ -0,0 +1,13 @@ +#ifndef H_OFX_GUI_MODE +#define H_OFX_GUI_MODE + +struct ofxGuiMode +{ + enum { + NONE, + TEXTURE_MAPPING, + PROJECTION_MAPPING + }; +}; + +#endif \ No newline at end of file diff --git a/src/ofxSurfaceManagerGui.cpp b/src/ofxSurfaceManagerGui.cpp index b11b102..e9a39c8 100644 --- a/src/ofxSurfaceManagerGui.cpp +++ b/src/ofxSurfaceManagerGui.cpp @@ -3,6 +3,7 @@ ofxSurfaceManagerGui::ofxSurfaceManagerGui() { surfaceManager = NULL; + guiMode = ofxGuiMode::NONE; } ofxSurfaceManagerGui::ofxSurfaceManagerGui(ofxSurfaceManager* newSurfaceManager) diff --git a/src/ofxSurfaceManagerGui.h b/src/ofxSurfaceManagerGui.h index 1ce3bd8..14cf333 100644 --- a/src/ofxSurfaceManagerGui.h +++ b/src/ofxSurfaceManagerGui.h @@ -5,6 +5,7 @@ #include "ofxSurfaceManager.h" #include "ofxTextureEditor.h" #include "ofxProjectionEditor.h" +#include "ofxGuiMode.h" class ofxSurfaceManagerGui { @@ -19,6 +20,7 @@ private: ofxSurfaceManager* surfaceManager; ofxTextureEditor textureEditor; ofxProjectionEditor projectionEditor; + int guiMode; }; #endif \ No newline at end of file diff --git a/src/ofxSurfaceType.h b/src/ofxSurfaceType.h index 95c8e31..5914130 100644 --- a/src/ofxSurfaceType.h +++ b/src/ofxSurfaceType.h @@ -1,8 +1,11 @@ #ifndef H_OFX_SURFACE_TYPE #define H_OFX_SURFACE_TYPE -enum class SurfaceType { - TRIANGLE_SURFACE +struct ofxSurfaceType +{ + enum { + TRIANGLE_SURFACE + }; }; #endif \ No newline at end of file