Skip to content
Snippets Groups Projects
Projector.cpp 876 B
Newer Older
#include "Projector.h"
#include "ofApp.h"
//--------------------------------------------------------------
void Projessed(int key){
    if (key == 'f') {
        ofSetWindowShape(1920, 1080);
        ofSetFullscreen(false);
        // figure out how to put the window in the center:
        int screenW = ofGetScreenWidth();
        int screenH = ofGetScreenHeight();
        ofSetWindowPosition(screenW / 2 - 300 / 2, screenH / 2 - 300 / 2);
      } else if (bFullscreen == 1) {
        ofSetFullscreen(true);
      cout << bFullscreen << endl;
}

void Projector::keyReleased(int key){
void Projector::mouseDragged(int x, int y, int button){
}

void Projector::mouseReleased(int x, int y, int button){
}

void Projector::mousePressed(int x, int y, int button){
}