12 changed files with 208 additions and 17 deletions
@ -1 +1,16 @@ |
|||
#include "ofxProjectionEditor.h" |
|||
#include "ofxProjectionEditor.h" |
|||
|
|||
ofxProjectionEditor::ofxProjectionEditor() |
|||
{ |
|||
|
|||
} |
|||
|
|||
ofxProjectionEditor::~ofxProjectionEditor() |
|||
{ |
|||
|
|||
} |
|||
|
|||
void ofxProjectionEditor::draw() |
|||
{ |
|||
|
|||
} |
@ -1 +1,33 @@ |
|||
#include "ofxTextureEditor.h" |
|||
#include "ofxTextureEditor.h" |
|||
|
|||
ofxTextureEditor::ofxTextureEditor() |
|||
{ |
|||
clear(); |
|||
} |
|||
|
|||
ofxTextureEditor::ofxTextureEditor(ofxBaseSurface* newSurface) |
|||
{ |
|||
setSurface(newSurface); |
|||
} |
|||
|
|||
ofxTextureEditor::~ofxTextureEditor() |
|||
{ |
|||
clear(); |
|||
} |
|||
|
|||
void ofxTextureEditor::draw() |
|||
{ |
|||
if ( surface != NULL ) { |
|||
surface->drawTexture(ofVec2f(0.0f,0.0f)); |
|||
} |
|||
} |
|||
|
|||
void ofxTextureEditor::setSurface(ofxBaseSurface* newSurface) |
|||
{ |
|||
surface = newSurface; |
|||
} |
|||
|
|||
void ofxTextureEditor::clear() |
|||
{ |
|||
surface = NULL; |
|||
} |
@ -1,11 +1,22 @@ |
|||
#ifndef H_OFX_TEXTURE_EDITOR |
|||
#define H_OFX_TEXTURE_EDITOR |
|||
|
|||
#include "ofxBaseSurface.h" |
|||
|
|||
class ofxTextureEditor |
|||
{ |
|||
public: |
|||
ofxTextureEditor(); |
|||
ofxTextureEditor(ofxBaseSurface* newSurface); |
|||
~ofxTextureEditor(); |
|||
|
|||
void draw(); |
|||
void setSurface(ofxBaseSurface* newSurface); |
|||
void clear(); |
|||
|
|||
private: |
|||
ofxBaseSurface* surface; |
|||
|
|||
}; |
|||
|
|||
#endif |
Loading…
Reference in new issue