본문 바로가기

C++(oF)

[초간단] OF윈도우 리사이즈 막기

#include "ofMain.h"
#include "ofApp.h"

//========================================================================
int main( ){
    ofGLFWWindowSettings settings;
    settings.width = 1024;
    settings.height = 1024;
    settings.windowMode = OF_WINDOW;
    settings.resizable = false; // 리사이즈 셋팅
    ofCreateWindow(settings);
    //ofSetupOpenGL(&window , 600,768,OF_WINDOW);           // <-------- setup the GL context

    // this kicks off the running of my app
    // can be OF_WINDOW or OF_FULLSCREEN
    // pass in width and height too:
    ofRunApp(new ofApp());

}



ofSetupOpenGL 대신 푸른색 부분으로 치환