Tkinter style GUI with raylib application? - c++

I am developing a sorting algorithm simulator in C++ using RayLib for the visual simulation and was wondering if there was a way I could implement a tkinter style GUI to make a sidebar for the window and allow the user to control the simulation
I have tried using RayGUI however currently some of the files use C only functions and syntax which do not work with C++
Is there any way I can achieve this? I don't mind changing libraries but I would prefer to stay with RayLib. I have also considered using pure tkinter and using tkinter canvas to draw the simulation but that is a last resort option.
Here is a rough diagram of what I would like to achieve (the right section would be a tkinter style sidebar)
https://github.com/Spacerulerwill/Algorithm-Visualiser/blob/master/img/sortUI.png

Related

Using simple GUI in OpenCV Dlib XCode project

I am making a C++ project where I need to show the images with certain points in a GUI.
Till here its simple using highGUI but problem happens with my next requirements.
I need to use the points drawn in the GUI and drag it to some other point and get that point.
I know openCV doesn't support this much requirements in GUI, so what other options are left to me?
One option that I see is using QT, also is it possible for me to use Objective C window .xib and use it together with my c++ project?
PS : HighGUI does take mouse input, but what I want is to create a point and drag it to some other point in the GUI window and then get the coordinate.

Cannot use Rotate, FlipVertical, FlipHorizontal in C++ Builder Embarcadero

I am making some simple games using this environment and I need to rotate some bitmaps, but the TBitmap class/objects does not have these functions shown here http://edn.embarcadero.com/article/42237 . I am using C++ Builder XE5 and making VCL Forms Application C++. I know I am not making FireMonkey application, but how is it then possible to rotate image without it? Are there any other ways around these functions? Thanks a lot for any help.

Can I change glui panel background colour?

I am using glui to add a control panel to my OpenGl code. This is a visualisation interface for a large scale simulation platform written in C++.
I was wondering if it is possible to make changes to the background colours of the panels?
If this is not possible, can anyone comment on how slower my display will become if I switch to using pyQt with OpenGL? And would it be possible to access information on my C++ classes and display them with a pyQt approach? (I am happy to make this a second thread if you think it is better that way.)
For background color change of glui-based panel, its not clear what you are asking but I don't see why it would not support such a basic op. Update: I would try using glClearColor like on that link.
For speed it really depends on what and how you're going to use opengl: see pyopengl: Could it replace c++? for a good discussion.
For using your c++ from python this is usually relatively easy by using SWIG (swig.org). You tell SWIG what parts of your c++ api you want to access from python and SWIG generates the code to make your c++ available as a python module.

How to create graphs in gtk+

I have implemented a max flow algorithm, now i want to show it using gui in gtk+.
I want to display the residual graph.How can i do this in gtk+? I am coding in c++.
You need a widget that can display graphs. There isn't one in plain vanilla GTK, so you'll have to find an external one. There are a few, I believe. If you happen to be using Python and PyGTK, you can use a Matplotlib graph in GTK.

Common game controls/ User interface libraries or source code?

Sorry for the ackward title, but i don't know what to call it exactly. I'm looking for code or libraries that allow easy creation of commonly used user input devices, and code/libs that make gaming controls easy to set up (i'm using SFML and Box2D at the moment)
I don't want to re-invent things like buttons, arrows being placed wherever the mouse is located, and more game specific items such as "controls settings" or even being able to drag objects around with the mouse.
More specifically i want source code for interfaces that....
Makes Buttons and Textboxes easy to create
allows mouse input to press buttons or drag objects in games
has "Focuses" (like a textbox being able to gain focus and be typed in)
Is compatable with SFML/Box2D
and code for common game mechanics/controls that....
Allows easy setup of controls for a game
Makes events like clicking and holding on an object easy to setup, as so objects can be dragged around afterward
Are there any simple libraries or resources out there that i can use to avoid spending much of my time coding these now standard input devices/tecniques?
I think CEGUI is the type of thing you are looking for:
http://www.cegui.org.uk/wiki/index.php/Main_Page
It is a GUI framework to work with OpenGL. Some others can be found in this list.
Still, if I were you, I would just use a major toolkit, such as GTK, Qt, or wxWidgets combined with SFML instead of dealing with CEGUI.
SFML has guides for Qt and wxWidgets with the rest of them at http://www.sfml-dev.org/tutorials/1.6/.
I have created my own little guide for GTK here: http://lalaland.github.com/gtkGuide.html