1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

0.7.4以前のoFを0.8.0に持ってくる時の注意

Posted at

main関数が、少し変わっている。

int main( ){
    ofAppGlutWindow window;
	ofSetupOpenGL(&window, 1920,1080, 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 testApp());
}

0.8.0だとこんな感じ

int main( ){
	ofSetupOpenGL(1280,720, 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 testApp());
}

ofAppGlutWindowインスタンスを中で作る、というかプラットフォーム別に分岐して、GLFWのウィンドウになってる。
0.7.4で作ってた物をそのまま持ってきてもビルドは通るんだけど、アンチエイリアスがかからなかったり、他にも何か不都合が出そうな気配なのでメモ。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?