Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Wireframe and Solid mode

Posted on 2005-03-31
Medium Priority
Last Modified: 2013-12-06
Hi Guys

OK in my Opengl app i want to be able to view both wireframe and solid mode at the same time ...how do i do this? ....i know how to view each individually for eg glPolygonMode(GL_FRONT_AND_BACK, GL_LINE) but i want to view both modes at the same times.

Question by:nutterx

Accepted Solution

_corey_ earned 500 total points
ID: 13682260
If you want to render wireframe on top of solid, then you'll just have to render it twice.


Expert Comment

ID: 14331456
Ok this is pretty simple, when your render the scene first render it in solid mode

with glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
//render code

then render the same again but then in GL_LINE

//render code

by the way I don't know what kind of buffers you use so it can be when you use GL_FRONT with both it could work


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question