Advertisement
xeromino

draw2

Jun 14th, 2016
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "ofMain.h"
  4.  
  5. class Line {
  6. public:
  7.     ofPoint a;
  8.     ofPoint b;
  9. };
  10.  
  11. class ofApp : public ofBaseApp{
  12.  
  13.     public:
  14.         void setup();
  15.         void update();
  16.         void draw();
  17.  
  18.         void keyPressed(int key);
  19.         void keyReleased(int key);
  20.         void mouseMoved(int x, int y );
  21.         void mouseDragged(int x, int y, int button);
  22.         void mousePressed(int x, int y, int button);
  23.         void mouseReleased(int x, int y, int button);
  24.         void mouseEntered(int x, int y);
  25.         void mouseExited(int x, int y);
  26.         void windowResized(int w, int h);
  27.         void dragEvent(ofDragInfo dragInfo);
  28.         void gotMessage(ofMessage msg);
  29.    
  30.         vector < ofPoint > drawnPoints;
  31.         vector < Line > lines;
  32.         string MyString;
  33. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement