Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

setGLVersion(3,2); can't use ofLineWidth

$
0
0

Hi,everyone ~ .In OF 9.0,i found a problem.

in main.cpp ,when i use this setting, that's ok

ofSetupOpenGL(1024,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());

but when i set the GLVersion,and use this setting

ofGLWindowSettings s;
s.setGLVersion(3,2);
ofCreateWindow(s);

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

all the lines will become 1 pixels

this setting is from an example (areaLightExample) from of 9.0


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>