Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Problem with OpenGL functionality: glPrimitiveRestartIndex
Re: Problem with OpenGL functionality: glPrimitiveRestartIndex [message #27510 is a reply to message #27508] Wed, 21 July 2010 15:05 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Just break your polygons down into triangles and draw those instead. It requires 0 extra vertices and (n-3)*2 extra indices (where n is the number of points in the polygon).

Unless you're planning on drawing millions of textured and shaded triangles a frame you won't notice any difference at all.

[Updated on: Wed, 21 July 2010 16:30]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Implementation of ColorPopUp ctrl
Next Topic: Custom Control
Goto Forum:
  


Current Time: Mon May 13 00:26:42 CEST 2024

Total time taken to generate the page: 0.02548 seconds