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

Thread: Converstion in OpenGL

  1. #1
    Guest

    Converstion in OpenGL

    How do i change code that is made for a console appliction into something that works for the screen type in open gl?

  2. #2
    Super Moderator OpenGL Guru dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,962

    Re: Converstion in OpenGL

    All windowing systems have an API to create windows etc. If you make those calls you will get a window.

    In addition where OpenGL is supported there is always a platform specific API to allow 3D OpenGL drawing contexts to be created and associated with the platforms windows.

    In addition to this some Operating systems will create a command line style 'console' if you have a program that starts with main. Windows requires a winmain function instead of main if you want to avoid a console. Whether or not you have a console you can still create a 3D graphics window in Windows.

    The details of creating a window can be tricky for beginners so to get things started quickly just use GLUT or a similar API to do the windowing and get yourself started quickly on the 3D stuff.

Posting Permissions

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