Browse Source

Fix type classes

master
Krisjanis Rijnieks 11 years ago
parent
commit
84f2645165
  1. 12
      src/ofxEditorType.h
  2. 13
      src/ofxGuiMode.h
  3. 1
      src/ofxSurfaceManagerGui.cpp
  4. 2
      src/ofxSurfaceManagerGui.h
  5. 7
      src/ofxSurfaceType.h

12
src/ofxEditorType.h

@ -0,0 +1,12 @@
#ifndef H_OFX_EDITOR_TYPE
#define H_OFX_EDITOR_TYPE
struct ofxEditorType
{
enum {
TEXTURE,
PROJECTION
};
};
#endif

13
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

1
src/ofxSurfaceManagerGui.cpp

@ -3,6 +3,7 @@
ofxSurfaceManagerGui::ofxSurfaceManagerGui()
{
surfaceManager = NULL;
guiMode = ofxGuiMode::NONE;
}
ofxSurfaceManagerGui::ofxSurfaceManagerGui(ofxSurfaceManager* newSurfaceManager)

2
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

7
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
Loading…
Cancel
Save