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 8 of 8

Thread: OpenGL own window system

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2010
    Posts
    3

    OpenGL own window system

    Hey, i'm really new on this, and i don't even know if this is the right place to post my trouble, please be tolerant

    I'm using GLUT to create my windows, but I want to create my own system of windows, and avoid the Microsoft, Mac, etc, styles and resources..

    Could you indicate me the right way to do what i want?
    Any help or orientation would be appreciated, thank you!

  2. #2
    Member Regular Contributor strattonbrazil's Avatar
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    306

    Re: OpenGL own window system

    What do you mean by your own system of Windows? You want to write a window GUI to control which windows are visible? Or are you just looking for a library that is portable across platforms that provides an OpenGL interface and GUI widgets and such?

    GLUT is pretty basic in its handling of windows. If you want really precise control, Qt provides a really good windowing system and has OpenGL widgets you can use. Is that what you're looking for?

  3. #3
    Junior Member Newbie
    Join Date
    Apr 2010
    Posts
    3

    Re: OpenGL own window system

    Ahm, i meant to make a GUI system avoiding another libraries.. there is any chance to create your own GUI system?

    Something like..
    http://www.youtube.com/watch?v=luMhaEsgBaU
    but without the Microsoft WinAPI..
    you can see the content of the winAPI as a GUI, but it depends of the winAPI and i don't want that

    or this..
    http://www.youtube.com/watch?v=I_2ae...eature=related

    Greetings and thank you, i realy appreaciate it

  4. #4
    Member Regular Contributor strattonbrazil's Avatar
    Join Date
    Jun 2007
    Location
    Los Angeles, CA
    Posts
    306

    Re: OpenGL own window system

    And you want to create something like that from scratch? Hrmm, cross platform font rendering is kind of tough without a library. What were you planning on doing for that? There are a few tutorials on font rendering using textures, but it's a huge hassle.

    When you say you want to avoid resources, what does that mean? You're code can't ship with a texture file? That makes it a bit more complex... This is a pretty big undertaking. Maybe you could provide a few more detailed questions...

  5. #5
    Junior Member Newbie
    Join Date
    Apr 2010
    Posts
    16

    Re: OpenGL own window system

    I don't really understand what you want either. You want to create your own homebrew gui windowing system (e.g. X+Qt+KDE) or just a windowing system inside your openGL application (as in those examples you posted)? or both?
    GLX version: 1.4
    OpenGL: 3.2.0 NVIDIA 195.36.15
    OpenGL shading language: 1.50 NVIDIA
    Kubuntu Karmic

  6. #6
    Junior Member Newbie
    Join Date
    Apr 2010
    Posts
    3

    Re: OpenGL own window system

    http://img24.imageshack.us/img24/9893/ownstyle.png

    i hope you understand me now with that image
    the first window is from winAPI, the sencond one(is not real, i did it with PS) is what i want

    i don't know if i can do it just with opengl, i was trying to take out the title bar with glut, but i found it's impossiblle, and i don't want to use winAPI or another API which i can avoid, but i don't know where to start

    greetings

  7. #7
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,719

    Re: OpenGL own window system

    You can draw anything with OpenGL. But writing a GUI system is not a trivial undertaking.

    OpenGL is a rendering API, not a GUI system. A GUI system can render with OpenGL, but OpengL does not provide what you want directly.

  8. #8
    Junior Member Newbie Tortin's Avatar
    Join Date
    Sep 2009
    Posts
    7

    Re: OpenGL own window system

    Maybe a little over the top:

    Make a transparent GLUT window, without borders.
    Make a show function with a title and message-parameter. And show this screen.
    You still need API-calls to determine the of the close or OK button is pressed.
    Also it's kinda hard to move this box.
    You can do the same with other Windows, although this concept need more thinking, and a hell of a work

    Greetings
    <span style="font-weight: bold">Freedom is the right to say two plus two make four. If granted, all else follows.</span>

Posting Permissions

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