Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: Multiple "panels" in one window.

  1. #1
    Newbie Newbie
    Join Date
    Sep 2017
    Posts
    1

    Multiple "panels" in one window.

    Hello, all. I hope I am not cross posting or double posting here. I searched the forums and didn't find anything relevant to my question, although I am sure it was asked before. I may not be using the right words. I am using OpenGL 3.3 I believe with Visual Studio 2017 and C++ with GLFW. I have done the first several tutorials from the OpenGL site as ell as the GLFW site, but have not come across any tutorials or literature for creating multiple panels in a single window. I am wanting to make panels much like Blender or other 3D modeling programs.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2013
    Posts
    168
    There is no such thing as a "Panel" in OpenGL. OpenGL is a low level rendering API. All (well, most) you can do is draw primitive shapes. There isnt even any support for rendering text.

    It sounds to me like OpenGL is not really the right choice for what you want to do. Perhaps you should look for a higher level library which allows you to build GUI's with. Perhaps Qt. Building a GUI from scratch with OpenGL is an enormous task which may take years to do.

  3. #3
    Member Regular Contributor
    Join Date
    Apr 2012
    Location
    Los Angeles
    Posts
    387
    In older versions of OpenGL, I used glViewPort and glScissor to divide a Window in 'panels', where a different scene was drawn in each panel. Don't know if these still apply to modern GL?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •