Antialiasing

Hello Friends,
Sends some code related to this topic and some good tutorial.
With Regards

Rajiv Kumar

glEnable(GL_SMOOTH);

Originally posted by Lurking:
glEnable(GL_SMOOTH);

Lurking,

This will cause a GL_INVALID_ENUM… (GL_SMOOTH is used with glShadeModel, not glEnable !).

Taken from MSDN - glEnable:

GL_LINE_SMOOTH
If enabled, draw lines with correct filtering. If disabled, draw aliased lines. See glLineWidth.

GL_POINT_SMOOTH
If enabled, draw points with proper filtering. If disabled, draw aliased points. See glPointSize.

GL_POLYGON_SMOOTH
If enabled, draw polygons with proper filtering. If disabled, draw aliased polygons. See glPolygonMode.

Now, if you are looking for antialiasing, it depends on the graphics card/drivers.

Regards.

Eric

[This message has been edited by Eric (edited 09-24-2001).]

hello,
r u from elearn,jeevan nagar center,new delhi.
naveen

Originally posted by rajiv:
[b]Hello Friends,
Sends some code related to this topic and some good tutorial.
With Regards

Rajiv Kumar[/b]