0

Can we partially redraw the frame in OpenGl?

For Example: If I have both Lines and Polygons in my frame, Polygons does not change ( same dimensions, colour etc) but there is some slight change in Lines. So I want to render only lines again and not polygons.

Is there a way to achieve this? There will a drastic change in the performance of my application if this is possible.

genpfault
  • 51,148
  • 11
  • 85
  • 139
Akansha
  • 933
  • 7
  • 18
  • 2
    If you can render the polygons and lines independently and combine them in a separate step, then yes. Look into "Framebuffer Objects" and "Render To Texture". – kloffy Jul 26 '16 at 05:52
  • @kloffy I use vertices and color to create lines and polygons. How to do it with that? – Akansha Jul 26 '16 at 08:13
  • Well, what I meant is more whether your scene is such that the lines are always drawn on top of the polygons or something similar. Otherwise, it may get a bit more complicated, but probably still possible. – kloffy Jul 26 '16 at 09:11

0 Answers0