Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Toolkit for Borland C++

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2010
    Posts
    22

    Toolkit for Borland C++

    Please advice me which OpenGL supported GUI toolkit is best to use with Borland compiler (excepting GLUT).I'm working with BDS 2006 C++ and seems like any good "up to date" toolkits (Qt,wxWidgets, even freeGlut) don't support Borland (switching to something else is not an option)
    My requirements are basic GUI - menus ,comboboxes, buttons.


    Thanks

  2. #2
    Junior Member Regular Contributor
    Join Date
    Apr 2009
    Posts
    185

    Re: Toolkit for Borland C++

    "toolkits (Qt,wxWidgets, even freeGlut) don't support Borland"

    oh then create a new project(dll)
    download source code of freeglut

    and start compiling

    check for error if any occur
    haven't made a game [img]<<GRAEMLIN_URL>>/frown.gif[/img]

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2010
    Posts
    22

    Re: Toolkit for Borland C++

    Hmm...very useful
    If you develop for work and stability and limited time are required then usually this way is not recommended that's why I asked for an advice from someone with experience...

  4. #4
    Junior Member Regular Contributor
    Join Date
    Apr 2009
    Posts
    185

    Re: Toolkit for Borland C++

    if toolkit not supported then this is look like last option
    else go for dev c++(you already said
    "switching to something else is not an option"
    )
    as you said
    "My requirements are basic GUI - menus ,comboboxes, buttons."

    why not you try to use

    Windows GUI
    "windows.h"

    or you want fancy button
    instead of some real 3d work
    haven't made a game [img]<<GRAEMLIN_URL>>/frown.gif[/img]

  5. #5
    Junior Member Newbie
    Join Date
    Feb 2010
    Posts
    22

    Re: Toolkit for Borland C++

    ^You are funny....

  6. #6
    Junior Member Regular Contributor
    Join Date
    Apr 2009
    Posts
    185

    Re: Toolkit for Borland C++

    hey what the fun behind it
    is it "windows.h"

    really

    i am also hunger to laugh on my words.
    haven't made a game [img]<<GRAEMLIN_URL>>/frown.gif[/img]

  7. #7
    Junior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    130

    Re: Toolkit for Borland C++

    BDS contains C++ builder, which has its own Visual IDE that uses VCL for creating GUIs via drag-and-drop. It takes just a few lines of code enable any of the windows to do OpenGL rendering, while still being able to drag-drop visual components on the rest of the form. An example is actually provided in BDS in the OpenGL folder under examples.

    Granted the application will not be cross-platform, but you have not mentioned that as a requirement.

  8. #8
    Junior Member Newbie
    Join Date
    Feb 2010
    Posts
    22

    Re: Toolkit for Borland C++

    Using VCL and particularly VCL controls with OpenGL is highly NOT recommended.I didn't believe it few years ago until I tried it myself.... It could be useful only for newbies while learning basics.

  9. #9
    Junior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    130

    Re: Toolkit for Borland C++

    ^Why is that? Did that come from Borland/Embarcadero or from experience?

    As far as I can remember, for as long as Borland was officially developing C++ Builder, they supplied their own samples to do precisely what you are advising against...

  10. #10
    Junior Member Newbie
    Join Date
    Feb 2010
    Posts
    22

    Re: Toolkit for Borland C++

    Firstable the demos Borland supplied were "no-GUI" - only empty window ( I wonder if they knew about problems with VCL controls).

    Most serious issue(I have more,but I don't want to turn this thread to Borland slam..):
    I expierienced memory access violation while reading data from TEdit/TCombo for my OpenGL drawing, I thought maybe there is something wrong with my code, but after searching in forums/mail lists I found that this is a known problem (OpenGL calls with VCL data fields),if I remember correctly I saw it also on CodeGear(now Embarcadero) mailing list.
    It made my computer freeze from time to time, specially for heavy drawings.I rewrote everything in pure Win32(but without GUI) and I never had any problems.

Posting Permissions

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