This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int n = 10; | |
float xpos[] = new float[n]; | |
float ypos[] = new float[n]; | |
// -------------------------------------------------------- | |
void setup() { | |
size(500, 500); | |
for (int i=0; i<n; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void getOpenGLCapabilities() { | |
printf("Getting OpenGL Capabilities\n"); | |
// number of textures | |
GLint ntex; | |
glGetIntegerv(GL_MAX_TEXTURE_UNITS, &ntex); | |
printf("Num Textures: %i\n", ntex); | |
// do we have point sprites | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "testApp.h" | |
#include "ofxBox2d.h" | |
ofxBox2d box2d; | |
vector <ofxBox2dPolygon> triangles; | |
//-------------------------------------------------------------- | |
void testApp::setup(){ | |
ofSetFrameRate(30); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "testApp.h" | |
#include "ofxBox2d.h" | |
ofxBox2dRect centerRect; | |
ofxBox2d box2d; | |
vector <ofPtr<ofxBox2dCircle> > circles; | |
//-------------------------------------------------------------- | |
void testApp::setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "testApp.h" | |
ofEasyCam camera; | |
ofVec3f posA, posB; | |
ofVec3f velA, velB; | |
bool bTouchingA, bTouchingB; | |
bool bPressedA, bPressedB; | |
static float minMouseDis = 15.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "testApp.h" | |
class Plane { | |
public: | |
ofVec3f p0,p1,p2; | |
void set(ofVec3f pt0, ofVec3f pt1, ofVec3f pt2) { | |
p0 = pt0; p1 = pt1; p2 = pt2; | |
} | |
float distance(ofVec3f point) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MyClass = (function() { | |
var instance; | |
function init() { | |
// Private | |
var className = "CLASS"; | |
var cb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var GlobalClass = (function () { | |
var propA = 33; | |
var name = "Something"; | |
var callback; | |
return { | |
value:33, | |
stringvar:"some string", | |
sayThis: function(e) { | |
callback = e; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[super viewDidLoad]; | |
[self.navigationController.navigationBar setBackgroundImage:[UIImage alloc] forBarMetrics:UIBarMetricsDefault]; | |
[self.navigationController.navigationBar setShadowImage:[UIImage alloc]]; | |
self.navigationController.navigationBar.tintColor = [UIColor whiteColor]; | |
self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName:[UIFont fontWithName:APP_FONT_MARK_OT_BOLD size:15], NSForegroundColorAttributeName:[UIColor whiteColor]}; | |
// this is kinda a hack... | |
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] | |
initWithTitle: @"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.modal { | |
overflow-y: auto; | |
} | |
.modal-open { | |
overflow: auto; | |
} | |
.modal-open[style] { | |
padding-right: 0px !important; | |
} |
OlderNewer