Hi Nan,

On Wed, May 25, 2011 at 8:43 PM, Nan WANG <nan.c...@gmail.com> wrote:
> After reading the GL_POINT_DISTANCE_ATTENUATION docs...i tried with osg
>
> there's no GL_POINT_DISTANCE_ATTENUATION  definition in GL.h
> only:
>
> GL_POINT_SMOOTH
> GL_POINT_SIZE
> GL_POINT_SIZE_RANGE
> GL_POINT_SIZE_GRANULARITY

Are you working under Windows and looking at the MS gl.h?  This header
is only OpenGL 1.1
so doesn't contain all the defines actually supported by the OpenGL
drivers at run-time, so the
OSG provides the missing #defines for you.

> regarding to GL_POINT
>
> Is there any example about using GL_POINT_DISTANCE_ATTENUATION to active 
> point size distance attenuation in OSG?

The osgpoints example contains code setting the
Point::setDistanceAttenuation settings.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to