├── addons.make
├── OFPlay.ai
├── OFPlay.icns
├── ofplay_main.png
├── froebelGuiRef.png
├── ofplay_intro.png
├── bin
└── data
│ ├── OFPlay.icns
│ ├── OFPlay.png
│ ├── Inconsolata.otf
│ ├── intro-ofbb.png
│ ├── intro-ofide.png
│ ├── intro-ofplay.png
│ ├── intro-offolder.png
│ ├── config.xml
│ ├── ofplay.xml
│ └── intro.xml
├── src
├── main.cpp
├── projectGenerator
│ ├── src
│ │ ├── projectGenerator.h
│ │ ├── CBLinuxProject.h
│ │ ├── CBWinProject.h
│ │ ├── visualStudioProject.h
│ │ ├── ofAddon.h
│ │ ├── xcodeProject.h
│ │ ├── baseProject.h
│ │ ├── Utils.h
│ │ ├── CBLinuxProject.cpp
│ │ ├── CBWinProject.cpp
│ │ ├── baseProject.cpp
│ │ ├── ofAddon.cpp
│ │ ├── visualStudioProject.cpp
│ │ └── Utils.cpp
│ └── libs
│ │ └── pugixml
│ │ ├── contrib
│ │ └── foreach.hpp
│ │ ├── readme.txt
│ │ └── src
│ │ └── pugiconfig.hpp
├── froebelGui
│ ├── froebelGui.h
│ ├── froebelShape.h
│ ├── froebelShapeButton.h
│ ├── froebelFolderElement.h
│ ├── froebelListBox.h
│ ├── froebelColor.h
│ ├── froebelEditBox.h
│ ├── froebelTab.h
│ ├── froebelContainer.h
│ ├── froebelShapeButton.cpp
│ ├── froebelTextBox.h
│ ├── froebelColor.cpp
│ ├── froebelShape.cpp
│ ├── froebelTab.cpp
│ ├── froebelListBox.cpp
│ ├── froebelContainer.cpp
│ ├── froebelFolderElement.cpp
│ ├── froebelEditBox.cpp
│ └── froebelTextBox.cpp
├── ofApp.h
├── intro
│ ├── SlideSequencer.h
│ ├── TextBlock.h
│ ├── SlideSequencer.cpp
│ └── TextBlock.cpp
├── mainScreenOFPlay.h
├── ofApp.cpp
└── mainScreenOFPlay.cpp
├── Makefile
├── OFPlay.workspace
├── Project.xcconfig
├── openFrameworks-Info.plist
├── .gitignore
├── README.md
├── OFPlay.xcodeproj
└── xcshareddata
│ └── xcschemes
│ ├── OFPlay Debug.xcscheme
│ └── OFPlay Release.xcscheme
├── config.make
└── OFPlay.cbp
/addons.make:
--------------------------------------------------------------------------------
1 | ofxXmlSettings
2 |
--------------------------------------------------------------------------------
/OFPlay.ai:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/OFPlay.ai
--------------------------------------------------------------------------------
/OFPlay.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/OFPlay.icns
--------------------------------------------------------------------------------
/ofplay_main.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/ofplay_main.png
--------------------------------------------------------------------------------
/froebelGuiRef.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/froebelGuiRef.png
--------------------------------------------------------------------------------
/ofplay_intro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/ofplay_intro.png
--------------------------------------------------------------------------------
/bin/data/OFPlay.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/bin/data/OFPlay.icns
--------------------------------------------------------------------------------
/bin/data/OFPlay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/bin/data/OFPlay.png
--------------------------------------------------------------------------------
/bin/data/Inconsolata.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/bin/data/Inconsolata.otf
--------------------------------------------------------------------------------
/bin/data/intro-ofbb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/bin/data/intro-ofbb.png
--------------------------------------------------------------------------------
/bin/data/intro-ofide.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/bin/data/intro-ofide.png
--------------------------------------------------------------------------------
/bin/data/intro-ofplay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/bin/data/intro-ofplay.png
--------------------------------------------------------------------------------
/bin/data/intro-offolder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/patriciogonzalezvivo/OFPlay/HEAD/bin/data/intro-offolder.png
--------------------------------------------------------------------------------
/bin/data/config.xml:
--------------------------------------------------------------------------------
1 | ../../../../
2 | /Users/Patricio/Desktop/openFrameworks/
3 | apps/myApps
4 |
--------------------------------------------------------------------------------
/src/main.cpp:
--------------------------------------------------------------------------------
1 | #include "ofMain.h"
2 | #include "ofApp.h"
3 | #include "ofAppGlutWindow.h"
4 |
5 | //========================================================================
6 | int main( int argc, char *argv[] ){
7 | ofAppGlutWindow window;
8 | window.setGlutDisplayString("rgba double samples>=4");
9 | ofSetupOpenGL(&window, 1024, 768, OF_WINDOW);
10 | testApp * app = new testApp;
11 | ofRunApp( app );
12 | }
13 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | # Attempt to load a config.make file.
2 | # If none is found, project defaults in config.project.make will be used.
3 | ifneq ($(wildcard config.make),)
4 | include config.make
5 | endif
6 |
7 | # make sure the the OF_ROOT location is defined
8 | ifndef OF_ROOT
9 | OF_ROOT=../../..
10 | endif
11 |
12 | # call the project makefile!
13 | include $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk
14 |
--------------------------------------------------------------------------------
/OFPlay.workspace:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/src/projectGenerator/src/projectGenerator.h:
--------------------------------------------------------------------------------
1 | //
2 | // projectGenerator.h
3 | // OFPlay
4 | //
5 | // Created by Patricio Gonzalez Vivo on 12/4/12.
6 | //
7 | //
8 |
9 | #ifndef OFPlay_projectGenerator_h
10 | #define OFPlay_projectGenerator_h
11 |
12 | #include "ofAddon.h"
13 | #include "CBLinuxProject.h"
14 | #include "CBWinProject.h"
15 | #include "visualStudioProject.h"
16 | #include "xcodeProject.h"
17 | #include
18 |
19 | #include "Utils.h"
20 |
21 | #endif
22 |
--------------------------------------------------------------------------------
/src/froebelGui/froebelGui.h:
--------------------------------------------------------------------------------
1 | //
2 | // froebelGui.h
3 | // OFPlay
4 | //
5 | // Created by Patricio Gonzalez Vivo on 12/3/12.
6 | // http://www.patriciogonzalezvivo.com
7 | //
8 |
9 | #ifndef FROEBELGUI
10 | #define FROEBELGUI
11 |
12 | // Basic Elements
13 | //
14 | #include "froebelColor.h"
15 | #include "froebelShape.h"
16 |
17 | // GUI elements
18 | //
19 | #include "froebelShapeButton.h"
20 |
21 | #include "froebelTextBox.h"
22 | #include "froebelEditBox.h"
23 |
24 | #include "froebelContainer.h"
25 |
26 | #include "froebelListBox.h"
27 | #include "froebelFolderElement.h"
28 |
29 | #include "froebelTab.h"
30 | #endif
31 |
--------------------------------------------------------------------------------
/src/froebelGui/froebelShape.h:
--------------------------------------------------------------------------------
1 | //
2 | // froebelShape.h
3 | // OFPlay
4 | //
5 | // Created by Patricio Gonzalez Vivo on 12/2/12.
6 | // http://www.patriciogonzalezvivo.com
7 | //
8 |
9 | #ifndef FROEBELSHAPE
10 | #define FROEBELSHAPE
11 |
12 | #include "ofMain.h"
13 |
14 | #include "froebelColor.h"
15 |
16 | class froebelShape : public ofPoint {
17 | public:
18 |
19 | froebelShape();
20 |
21 | void setShape(int _shapeNum, float _size);
22 |
23 | virtual void draw();
24 |
25 | froebelColor color;
26 |
27 | float size;
28 |
29 | ofPolyline shape;
30 | protected:
31 | int type;
32 | };
33 |
34 | #endif
35 |
--------------------------------------------------------------------------------
/Project.xcconfig:
--------------------------------------------------------------------------------
1 | //THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT.
2 | //THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED
3 | OF_PATH = ../../..
4 |
5 | //THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
6 | #include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
7 |
8 | //ICONS - NEW IN 0072
9 | ICON_NAME_DEBUG = icon-debug.icns
10 | ICON_NAME_RELEASE = icon.icns
11 | ICON_FILE_PATH = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/
12 |
13 | //IF YOU WANT AN APP TO HAVE A CUSTOM ICON - PUT THEM IN YOUR DATA FOLDER AND CHANGE ICON_FILE_PATH to:
14 | //ICON_FILE_PATH = bin/data/
15 |
16 | OTHER_LDFLAGS = $(OF_CORE_LIBS)
17 | HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
18 |
--------------------------------------------------------------------------------
/src/projectGenerator/src/CBLinuxProject.h:
--------------------------------------------------------------------------------
1 | /*
2 | * CBLinuxProject.h
3 | *
4 | * Created on: 28/12/2011
5 | * Author: arturo
6 | */
7 |
8 | #ifndef CBLINUXPROJECT_H_
9 | #define CBLINUXPROJECT_H_
10 |
11 | #include "ofConstants.h"
12 | #include "pugixml.hpp"
13 | #include "ofAddon.h"
14 | #include "CBWinProject.h"
15 |
16 | class CBLinuxProject: public CBWinProject {
17 | public:
18 |
19 | enum Arch{
20 | Linux,
21 | Linux64
22 | };
23 |
24 | void setup();
25 |
26 | bool createProjectFile();
27 | void addInclude(string includeName){};
28 | void addLibrary(string libraryName, LibType libType = RELEASE_LIB){};
29 |
30 | static string LOG_NAME;
31 |
32 | private:
33 |
34 | Arch arch;
35 | };
36 |
37 | #endif /* CBLINUXPROJECT_H_ */
38 |
--------------------------------------------------------------------------------
/openFrameworks-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | English
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIconFile
10 | OFPlay
11 | CFBundleIdentifier
12 | com.yourcompany.openFrameworks
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundlePackageType
16 | APPL
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1.0
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/projectGenerator/src/CBWinProject.h:
--------------------------------------------------------------------------------
1 | /*
2 | * CBLinuxProject.h
3 | *
4 | * Created on: 28/12/2011
5 | * Author: arturo
6 | */
7 |
8 | #ifndef CBWINPROJECT_H_
9 | #define CBWINPROJECT_H_
10 |
11 | #include "ofConstants.h"
12 | #include "pugixml.hpp"
13 | #include "ofAddon.h"
14 | #include "baseProject.h"
15 |
16 | class CBWinProject: virtual public baseProject {
17 | public:
18 |
19 | void setup();
20 |
21 | bool createProjectFile();
22 | bool loadProjectFile();
23 | bool saveProjectFile();
24 |
25 | void addSrc(string srcName, string folder);
26 | void addInclude(string includeName);
27 | void addLibrary(string libraryName, LibType libType = RELEASE_LIB);
28 |
29 | string getName();
30 | string getPath();
31 |
32 | static string LOG_NAME;
33 |
34 | private:
35 |
36 | };
37 |
38 | #endif /* CBLINUXPROJECT_H_ */
39 |
--------------------------------------------------------------------------------
/src/projectGenerator/src/visualStudioProject.h:
--------------------------------------------------------------------------------
1 |
2 | #ifndef VSWINPROJECT_H_
3 | #define VSWINPROJECT_H_
4 |
5 | #include "ofConstants.h"
6 | #include "pugixml.hpp"
7 | #include "ofAddon.h"
8 | #include "baseProject.h"
9 |
10 | class visualStudioProject : public baseProject {
11 |
12 | public:
13 |
14 | void setup(string ofRoot= "../../../");
15 |
16 | void setup();
17 |
18 | bool createProjectFile();
19 | bool loadProjectFile();
20 | bool saveProjectFile();
21 |
22 | void addSrc(string srcFile, string folder);
23 | void addInclude(string includeName);
24 | void addLibrary(string libraryName, LibType libType);
25 |
26 | void addAddon(ofAddon & addon);
27 |
28 | static string LOG_NAME;
29 |
30 | pugi::xml_document filterXmlDoc;
31 |
32 |
33 | void appendFilter(string folderName);
34 |
35 | private:
36 |
37 | };
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/src/froebelGui/froebelShapeButton.h:
--------------------------------------------------------------------------------
1 | //
2 | // froebelShapeButton.h
3 | // OFPlay
4 | //
5 | // Created by Patricio Gonzalez Vivo on 12/7/12.
6 | // http://www.patriciogonzalezvivo.com
7 | //
8 |
9 | #ifndef FROEBELSHAPEBUTTON
10 | #define FROEBELSHAPEBUTTON
11 |
12 | #include "ofMain.h"
13 | #include "froebelShape.h"
14 |
15 | class froebelShapeButton : public froebelShape {
16 | public:
17 |
18 | froebelShapeButton();
19 |
20 | virtual bool checkMousePressed(ofPoint _mouse);
21 |
22 | virtual void update();
23 | virtual void draw();
24 |
25 | ofEvent clicked;
26 |
27 | string text;
28 | froebelColor textColor;
29 | ofTrueTypeFont *font;
30 |
31 | enum { STATE_DISABLE, STATE_ENABLE, STATE_HOVER };
32 | int nState;
33 | bool bEnable;
34 | };
35 |
36 | #endif
37 |
--------------------------------------------------------------------------------
/src/froebelGui/froebelFolderElement.h:
--------------------------------------------------------------------------------
1 | //
2 | // froebelDirElement.h
3 | // OFPlay
4 | //
5 | // Created by Patricio Gonzalez Vivo on 12/5/12.
6 | // http://www.patriciogonzalezvivo.com
7 | //
8 |
9 | #ifndef FROEBELFOLDERELEMENT
10 | #define FROEBELFOLDERELEMENT
11 |
12 | #include "ofMain.h"
13 | #include "froebelTextBox.h"
14 | #include "froebelContainer.h"
15 |
16 | class froebelFolderElement : public froebelTextBox {
17 | public:
18 |
19 | froebelFolderElement();
20 |
21 | void reset();
22 | virtual string getText();
23 | virtual ofRectangle getBoundingBox();
24 |
25 | virtual bool checkMousePressed(ofPoint _mouse);
26 |
27 | virtual void update();
28 | virtual void draw();
29 |
30 | froebelContainer *father;
31 | froebelContainer containerBox;
32 |
33 | string rootPath;
34 |
35 | protected:
36 |
37 | };
38 | #endif
39 |
--------------------------------------------------------------------------------
/src/froebelGui/froebelListBox.h:
--------------------------------------------------------------------------------
1 | //
2 | // froebelListBox.h
3 | // OFPlay
4 | //
5 | // Created by Patricio Gonzalez Vivo on 12/2/12.
6 | // http://www.patriciogonzalezvivo.com
7 | //
8 |
9 | #ifndef FROEBELLISTBOX
10 | #define FROEBELLISTBOX
11 |
12 | #include "ofMain.h"
13 | #include "froebelTextBox.h"
14 | #include "froebelContainer.h"
15 | #include "froebelFolderElement.h"
16 |
17 | class froebelListBox : public froebelTextBox {
18 | public:
19 |
20 | froebelListBox();
21 |
22 | void addElement(string _value, bool _defVal = false, int _iconShape = -1, int _edgeCoorner = -1);
23 | bool select(string _value);
24 | string getSelectedAsString();
25 | void reset();
26 |
27 | virtual ofRectangle getBoundingBox();
28 | bool checkMousePressed(ofPoint _mouse);
29 |
30 | void update();
31 | void draw();
32 |
33 | froebelContainer containerBox;
34 | };
35 |
36 | #endif
37 |
--------------------------------------------------------------------------------
/src/froebelGui/froebelColor.h:
--------------------------------------------------------------------------------
1 | //
2 | // froebelColor.h
3 | // OFPlay
4 | //
5 | // Created by Patricio Gonzalez Vivo on 12/3/12.
6 | // http://www.patriciogonzalezvivo.com
7 | //
8 |
9 | #ifndef FROEBELCOLOR
10 | #define FROEBELCOLOR
11 |
12 | #include "ofMain.h"
13 |
14 | class froebelColor : public ofFloatColor {
15 | public:
16 |
17 | froebelColor();
18 |
19 | void setFromPalet( unsigned int _palletN );
20 | ofFloatColor getFromPalet( unsigned int _palletN );
21 |
22 | void clear();
23 | void addState( unsigned int _palletN );
24 | void addState( ofFloatColor _color);
25 | void linktToColor( ofFloatColor *_color );
26 |
27 | void setState( unsigned int _stateN );
28 |
29 | void update();
30 |
31 | float damp;
32 | private:
33 | vector states;
34 | ofFloatColor *pointerToColor;
35 |
36 | int dstStateN;
37 | };
38 |
39 | #endif
40 |
--------------------------------------------------------------------------------
/src/projectGenerator/src/ofAddon.h:
--------------------------------------------------------------------------------
1 | /*
2 | * ofAddon.h
3 | *
4 | * Created on: 28/12/2011
5 | * Author: arturo
6 | */
7 |
8 | #ifndef OFADDON_H_
9 | #define OFADDON_H_
10 |
11 | #include