Skip to content

Commit

Permalink
64 bit mac os x build working!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
obviousjim committed Jun 8, 2014
1 parent 029db50 commit af039b1
Show file tree
Hide file tree
Showing 31 changed files with 4,842 additions and 1,106 deletions.
2,099 changes: 1,305 additions & 794 deletions CLOUDS/CLOUDS_64.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion CLOUDS/src/testApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void testApp::keyPressed(int key){
if(key == 'L'){
#ifdef OCULUS_RIFT
ofPixels p;
CloudsVisualSystem::getOculusRift().getRenderTarget().readToPixels(p);
// CloudsVisualSystem::getOculusRift().getRenderTarget().readToPixels(p);
ofSaveImage(p,"OCULUS_BG.png");
#endif
}
Expand Down
16 changes: 0 additions & 16 deletions CloudsData/secondaryDisplay/ssl/libwebsockets-test-server.key.pem

This file was deleted.

18 changes: 0 additions & 18 deletions CloudsData/secondaryDisplay/ssl/libwebsockets-test-server.pem

This file was deleted.

9 changes: 5 additions & 4 deletions CloudsLibrary/src/RGBD/HUD/CloudsSVGMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@

#include "CloudsSVGMesh.h"

string strrephack(string& input, const string& searchStr, const string& replaceStr){
ofStringReplace(input, searchStr, replaceStr);
return input;
}

//constructor
CloudsSVGMesh::CloudsSVGMesh(){
Expand All @@ -28,6 +24,11 @@ bool CloudsSVGMesh::loadDirectory(string file){
return true;
}

string CloudsSVGMesh::strrephack(string input, string searchStr, string replaceStr){
ofStringReplace(input, searchStr, replaceStr);
return input;
}

bool CloudsSVGMesh::load(string file){
ofxXmlSettings svg;
if(!svg.loadFile(file)){
Expand Down
1 change: 1 addition & 0 deletions CloudsLibrary/src/RGBD/HUD/CloudsSVGMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class CloudsSVGMesh
protected:
//void recurseSVGTag(ofxXmlSettings& xml, const string& parentId, float parentOpacity);
void recurseSVGTag(ofxXmlSettings& xml, const string& parentId, float parentOpacity);
string strrephack(string input, string searchStr, string replaceStr);

vector<SVGMesh> meshes;
map<string,int> meshIdIndex;
Expand Down
2 changes: 1 addition & 1 deletion CloudsLibrary/src/StoryEngine/CloudsStoryEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ float CloudsStoryEngine::scoreForTopic(CloudsStoryState& state, string potential
return 0;
}

if(ofContains(state.topicHistory, potentialNextTopic) && !state.topicNum == maxTopicsPerAct-1){
if(ofContains(state.topicHistory, potentialNextTopic) && state.topicNum != maxTopicsPerAct-1){
if(bLogTopicDetails)state.log << state.duration << "\t\t\t\t\tREJECTED Topic " << potentialNextTopic << " has already been explored" << endl;
return 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ typedef struct {
} polyPtr;


typedef struct lineSet{
typedef struct lineSet {

vector < ofPolyline > lines;
vector < ofPolyline > normalizeLines;
Expand All @@ -55,8 +55,8 @@ typedef struct lineSet{
return distance < input.distance;
}

} ;
};



bool sortFunc(const distanceResult & a, const distanceResult & b);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
//
// CloudsVisualSystemEmpty.cpp
//

#include "CloudsVisualSystemExampleMPMFluid.h"
#include "CloudsRGBDVideoPlayer.h"
Expand Down Expand Up @@ -314,21 +311,22 @@ void CloudsVisualSystemExampleMPMFluid:: selfInteractionMoved(CloudsInteractionE
}
}

void CloudsVisualSystemExampleMPMFluid :: selfInteractionStarted(CloudsInteractionEventArgs& args){
void CloudsVisualSystemExampleMPMFluid::selfInteractionStarted(CloudsInteractionEventArgs& args){

}

void CloudsVisualSystemExampleMPMFluid:: selfInteractionDragged(CloudsInteractionEventArgs& args){
void CloudsVisualSystemExampleMPMFluid::selfInteractionDragged(CloudsInteractionEventArgs& args){

}

void CloudsVisualSystemExampleMPMFluid:: selfInteractionEnded(CloudsInteractionEventArgs& args){
void CloudsVisualSystemExampleMPMFluid::selfInteractionEnded(CloudsInteractionEventArgs& args){

map<int, int >::iterator it;
for(it = currentPlayers.begin(); it != currentPlayers.end(); ){

if (it->first == args.playerId) {
it = currentPlayers.erase(it);
currentPlayers.erase(it);
break;
// cout<<"removing from map "<<it->first<<endl;
}
else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,9 @@ void CloudsVisualSystemFlying::selfUpdate()

const float maxPlantDist = growDist * 5.f;
const float maxPlantDistSq = maxPlantDist * maxPlantDist;

for (auto& it = plants.begin(); it != plants.end();)

list<Plant>::iterator it;
for (it = plants.begin(); it != plants.end(); it++)
{
if ((it->pos - floorLookAt).lengthSquared() > maxPlantDistSq) {
it = plants.erase(it);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ void CloudsVisualSystemHistogram::selfDraw()
glFogi(GL_FOG_COORD_SRC, GL_FRAGMENT_DEPTH);
glFogi(GL_FOG_MODE, GL_EXP);

GLfloat fogColor[4] = { bgColor.r/255., bgColor.g/255., bgColor.b/255., 1.0 };
GLfloat fogColor[4] = {
(GLfloat)(bgColor.r/255.),
(GLfloat)(bgColor.g/255.),
(GLfloat)(bgColor.b/255.), (GLfloat)(1.0) };
glFogfv(GL_FOG_COLOR, fogColor);

glFogf(GL_FOG_DENSITY, powf(fogDensity, 4));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ MazeCell::MazeCell(int _x, int _y, float s, float t, float h)
visible = true;
}

size_t MazeCell::addGeometry(vector<ofVec3f> &verts, vector<ofVec3f> &normals, vector<ofVec2f> &uvs)
unsigned long long MazeCell::addGeometry(vector<ofVec3f> &verts, vector<ofVec3f> &normals, vector<ofVec2f> &uvs)
{
ofVec3f wallPoints[] = {
// north wall bottom
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
//
//

#ifndef __MazeGenerator__MazeCell__
#define __MazeGenerator__MazeCell__
#pragma once

#include <ofMain.h>
#include "ofMain.h"

class MazeCell
{
Expand Down Expand Up @@ -43,4 +42,4 @@ class MazeCell
};


#endif /* defined(__MazeGenerator__MazeCell__) */

Loading

0 comments on commit af039b1

Please sign in to comment.