Skip to content

Instantly share code, notes, and snippets.

@roxlu
Created July 11, 2011 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roxlu/1075760 to your computer and use it in GitHub Desktop.
Save roxlu/1075760 to your computer and use it in GitHub Desktop.
#include "testApp.h"
#include "ofMaterial.h"
void testApp::setup(){
ofBackground(33,33,33);
my_fbo.allocate(ofGetWidth(),ofGetHeight());
ofEnableNormalizedTexCoords();
}
void testApp::draw(){
// my_fbo.begin();
// cam.begin();
// my_3d_object.draw();
// cam.end();
// my_fbo.end();
// ofTexture& tex = my_fbo.getTexture(0);
cam.begin();
my_3d_object_with_texcoords.draw();
cam.end();
}
void testApp::keyPressed(int key){
}
void testApp::update(){
}
//--------------------------------------------------------------
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){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment