c++ - Pixel width using glPointSize - no effect -



c++ - Pixel width using glPointSize - no effect -

i have code dropping points. want increment point size. right utilize command glpointsize nil happens. point size default. not increase. how can increment point size?

glbegin(gl_points); glcolor3f (a, b, c); glpointsize(20.0f); glvertex2i(px, py); glend();

glpointsize(20.0f); has set before glbegin(), otherwise won't have effect. this:

glpointsize(20.0f); glbegin(gl_points); glcolor3f (a, b, c); glvertex2i(px, py); glend();

in opengl documentation, can read that:

only subset of gl commands can used between glbegin , glend. commands glvertex, glcolor, glindex, glnormal, gltexcoord, glevalcoord, glevalpoint, glarrayelement, glmaterial, , gledgeflag. also, acceptable utilize glcalllist or glcalllists execute display lists include preceding commands. if other gl command executed between glbegin , glend, error flag set , command ignored.

c++ c visual-c++ opengl

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -