Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


gluTessProperty ( GLU tessellation )

This topic is 6042 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Who can give me a working example of GLU tessellation sample program? I have confused in parameters. ------------------------------------------------ CTessellator::CTessellator() : m_tess( 0 ) { m_tess = gluNewTess(); ATLASSERT( m_tess ); if( !m_tess ) return; gluTessProperty( m_tess, GLU_TESS_WINDING_RULE, GLU_TESS_WINDING_ODD ); gluTessProperty( m_tess, GLU_TESS_BOUNDARY_ONLY, GL_TRUE ); gluTessProperty( m_tess, GLU_TESS_TOLERANCE, ABSOLUTE_PRECISION ); // gluTessCallback( m_tess, GLU_TESS_BEGIN_DATA, reinterpret_cast< void (__stdcall *)(void) >( stBeginData ) ); gluTessCallback( m_tess, GLU_TESS_VERTEX_DATA, reinterpret_cast< void (__stdcall *)(void) >( stVertexData ) ); gluTessCallback( m_tess, GLU_TESS_END_DATA, reinterpret_cast< void (__stdcall *)(void) >( stEndData ) ); gluTessCallback( m_tess, GLU_TESS_ERROR_DATA, reinterpret_cast< void (__stdcall *)(void) >( stErrorData ) ); gluTessCallback( m_tess, GLU_TESS_COMBINE_DATA , reinterpret_cast< void (__stdcall *)(void) >( stCombineData ) ); gluTessCallback( m_tess, GLU_TESS_VERTEX, reinterpret_cast< void (__stdcall *)(void) >( stVertex ) ); } void CTessellator::beginPolygon() { if( !m_tess ) return; gluTessBeginPolygon( m_tess, this ); } .... -- Best Regards Taras e-mail : tr@os-it.com

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!