Gets called once before the first time resizeGL() or paintGL() is called. initializeGL() - Sets up the OpenGL resources and state.Gets called whenever the widget has been resized (and also when it is shown for the first time because all newly created widgets get a resize event automatically). resizeGL() - Sets up the OpenGL viewport, projection, etc. ![]() Gets called whenever the widget needs to be updated. QOpenGLWidget provides three convenient virtual functions that you can reimplement in your subclass to perform the typical OpenGL tasks: It is very simple to use: Make your class inherit from it and use the subclass like any other QWidget, except that you have the choice between using QPainter and standard OpenGL rendering commands. ![]() QOpenGLWidget provides functionality for displaying OpenGL graphics integrated into a Qt application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |