ofxPiMapper fixed for C++17 & oF 12.0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

40 lines
755 B

#include "ofApp.h"
void ofApp::setup()
{
// Load test pattern image
image.loadImage("TestPatternInvert.jpg");
// Create a triangle surface
triangleSurface.setup( ofVec2f(30,40), ofVec2f(500,500), ofVec2f(0,600), ofVec2f(0,0), ofVec2f(1,1), ofVec2f(0,1), &image.getTextureReference() );
}
void ofApp::update()
{
ofBackground(0);
}
void ofApp::draw()
{
triangleSurface.draw();
}
void ofApp::keyPressed(int key)
{
cout << "Key pressed: " << static_cast<char>(key) << endl;
}
void ofApp::mousePressed(int x, int y, int button)
{
cout << "Mouse pressed." << endl;
}
void ofApp::mouseReleased(int x, int y, int button)
{
cout << "Mouse released." << endl;
}
void ofApp::mouseDragged(int x, int y, int button)
{
//
}