c++ - Lifecycle of an OpenGLAppComponent in Juce -


i can't seem grasp on how these openglappcomponents come , go. can please correct thinking if wrong?

  1. object created inheirts openglappcomponents , timer. object exists in audioprocessoreditor.
  2. call initialise() (this attach openglcontext? timer started.)
  3. addandmakevisible(&my_gl_appcomponent); called editor, telling drawn.
  4. my_gl_appcomponent.setbounds(...) called specifying size , location of gl component.
  5. the timer callback calls repaint() repeatedly, updating display.
  6. when editor closed, call shutdown(), detach openglcontext.
  7. delete my_gl_component, calling shutdownopengl() in destructor
  8. we free open editor again, goto 2.

am missing anything? have things? i've been trying find cause of gl_invalid_framebuffer_operation error second day in row , i'm getting pretty frustrated.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -