summaryrefslogtreecommitdiff
path: root/liveengineUnmapped/ofxSVGTiny/example/src
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-04-26 18:20:21 +0100
committerTim Redfern <tim@eclectronics.org>2014-04-26 18:20:21 +0100
commit6f74f80e4c116c61b4734ffbae86aff881daaf5b (patch)
treec0044aa2efefd53711cba63ed91860e265831703 /liveengineUnmapped/ofxSVGTiny/example/src
parentba9af7648a79b54836019ca792e40e81ca863c86 (diff)
started GLFW version
Diffstat (limited to 'liveengineUnmapped/ofxSVGTiny/example/src')
-rw-r--r--liveengineUnmapped/ofxSVGTiny/example/src/main.cpp16
-rw-r--r--liveengineUnmapped/ofxSVGTiny/example/src/testApp.cpp114
-rw-r--r--liveengineUnmapped/ofxSVGTiny/example/src/testApp.h22
3 files changed, 0 insertions, 152 deletions
diff --git a/liveengineUnmapped/ofxSVGTiny/example/src/main.cpp b/liveengineUnmapped/ofxSVGTiny/example/src/main.cpp
deleted file mode 100644
index 6a32c6a..0000000
--- a/liveengineUnmapped/ofxSVGTiny/example/src/main.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-#include "ofMain.h"
-#include "testApp.h"
-#include "ofAppGlutWindow.h"
-
-//========================================================================
-int main( ){
-
- ofAppGlutWindow window;
- ofSetupOpenGL(&window, 1024,768, OF_WINDOW); // <-------- setup the GL context
-
- // this kicks off the running of my app
- // can be OF_WINDOW or OF_FULLSCREEN
- // pass in width and height too:
- ofRunApp( new testApp());
-
-}
diff --git a/liveengineUnmapped/ofxSVGTiny/example/src/testApp.cpp b/liveengineUnmapped/ofxSVGTiny/example/src/testApp.cpp
deleted file mode 100644
index db5e617..0000000
--- a/liveengineUnmapped/ofxSVGTiny/example/src/testApp.cpp
+++ /dev/null
@@ -1,114 +0,0 @@
-#include "testApp.h"
-
-#include "ofxSVGTiny.h"
-
-ofxSVGTiny svg;
-
-//--------------------------------------------------------------
-void testApp::setup()
-{
- ofSetVerticalSync(true);
- ofSetFrameRate(60);
-
- ofBackground(0);
- ofSetColor(255);
-
- svg.load("taichi.svg");
-}
-
-float step;
-
-//--------------------------------------------------------------
-void testApp::update()
-{
- step += 0.001;
- if (step > 1)
- {
- step -= 1;
- }
-}
-
-//--------------------------------------------------------------
-void testApp::draw()
-{
-
- svg.draw();
-
- glTranslatef(450, 0, 0);
-
- for (int i = 0; i < svg.getNumPath(); i++)
- {
- ofPath &p = svg.getPathAt(i);
-
- vector<ofPolyline>& lines = p.getOutline();
-
- for (int k = 0; k < lines.size(); k++)
- {
- ofPolyline line = lines[k].getResampledBySpacing(1);
-
- int num = step * line.size();
-
- glBegin(GL_LINE_STRIP);
- for (int j = 0; j < num; j++)
- {
- ofVec3f &vv = line[j];
- glVertex3f(vv.x, vv.y, vv.z);
- }
- glEnd();
- }
- }
-}
-
-//--------------------------------------------------------------
-void testApp::keyPressed(int key)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::keyReleased(int key)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::mouseMoved(int x, int y)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::mouseDragged(int x, int y, int button)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::mousePressed(int x, int y, int button)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::mouseReleased(int x, int y, int button)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::windowResized(int w, int h)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::gotMessage(ofMessage msg)
-{
-
-}
-
-//--------------------------------------------------------------
-void testApp::dragEvent(ofDragInfo dragInfo)
-{
-
-} \ No newline at end of file
diff --git a/liveengineUnmapped/ofxSVGTiny/example/src/testApp.h b/liveengineUnmapped/ofxSVGTiny/example/src/testApp.h
deleted file mode 100644
index 0cb5a8c..0000000
--- a/liveengineUnmapped/ofxSVGTiny/example/src/testApp.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#pragma once
-
-#include "ofMain.h"
-
-class testApp : public ofBaseApp{
-
- public:
- void setup();
- void update();
- void draw();
-
- void keyPressed (int key);
- void keyReleased(int key);
- void mouseMoved(int x, int y );
- void mouseDragged(int x, int y, int button);
- void mousePressed(int x, int y, int button);
- void mouseReleased(int x, int y, int button);
- void windowResized(int w, int h);
- void dragEvent(ofDragInfo dragInfo);
- void gotMessage(ofMessage msg);
-
-};