Skip to content

Commit

Permalink
VS GPU Particles
Browse files Browse the repository at this point in the history
not working yet
  • Loading branch information
jonathanminard committed Nov 20, 2013
1 parent f126a4d commit 9811f0a
Show file tree
Hide file tree
Showing 9 changed files with 1,828 additions and 0 deletions.
1,667 changes: 1,667 additions & 0 deletions VSGPUParticles/GPUParticles.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions VSGPUParticles/Project.xcconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//THE PATH TO THE ROOT OF OUR OF PATH RELATIVE TO THIS PROJECT.
//THIS NEEDS TO BE DEFINED BEFORE CoreOF.xcconfig IS INCLUDED
OF_PATH = ../../..

//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"

OTHER_LDFLAGS = $(OF_CORE_LIBS)
HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS)
Binary file added VSGPUParticles/bin/data/GUI/NewMedia Fett.ttf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions VSGPUParticles/bin/data/GUI/defaultColors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<colors>
<guiBackground>
<r>0</r><g>0</g><b>0</b><a>100</a>
</guiBackground>
<background>
<r>41</r><g>42</g><b>53</b><a>255</a>
</background>
<text>
<r>255</r><g>255</g><b>255</b><a>255</a>
</text>
<key>
<r>52</r><g>175</g><b>195</b><a>255</a>
</key>
<highlight>
<r>165</r><g>54</g><b>71</b><a>255</a>
</highlight>
<disabled>
<r>98</r><g>98</g><b>103</b><a>255</a>
</disabled>
<modalBackground>
<r>98</r><g>98</g><b>103</b><a>255</a>
</modalBackground>
<outline>
<r>149</r><g>204</g><b>103</b><a>255</a>
</outline>
</colors>
20 changes: 20 additions & 0 deletions VSGPUParticles/openFrameworks-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.openFrameworks</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
</dict>
</plist>
12 changes: 12 additions & 0 deletions VSGPUParticles/src/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include "testApp.h"
#include "ofAppGlutWindow.h"

//--------------------------------------------------------------
int main(){
ofAppGlutWindow window; // create a window
// set width, height, mode (OF_WINDOW or OF_FULLSCREEN)
window.setGlutDisplayString("rgba double samples>=4 depth");
ofSetupOpenGL(&window, 1224, 768, OF_WINDOW);
ofRunApp(new testApp()); // start the app
}

70 changes: 70 additions & 0 deletions VSGPUParticles/src/testApp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#include "testApp.h"

//--------------------------------------------------------------
void testApp::setup(){
ofSetVerticalSync(true);

GPUParticles.setup();
GPUParticles.playSystem();
}


//--------------------------------------------------------------
void testApp::update(){

}


//--------------------------------------------------------------
void testApp::draw(){

}

//--------------------------------------------------------------
void testApp::keyPressed(int key){

}

//--------------------------------------------------------------
void testApp::exit(){
}

//--------------------------------------------------------------
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){

}
24 changes: 24 additions & 0 deletions VSGPUParticles/src/testApp.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#pragma once

#include "ofMain.h"
#include "CloudsVisualSystemGPUParticles.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);
void exit();

CloudsVisualSystemGPUParticles GPUParticles;
};

0 comments on commit 9811f0a

Please sign in to comment.