Skip to main content
gamedev.net
🔒 Locked

GUI

Started by vongodric 6 replies 950+ views
Original Post
vongodric
vongodric
I'm interested in some GUI-tutorials or smth. I want to make a gui for my game ( and even know how to, but just wanna learn more about it ). And I use C for this project.
vongodric
vongodric
errr. not win32 api. I want to have gui elements inside the game I'm dev'ing. hardly you get win32 gui to work inside sdl, or if you know how to accomplish taht let me know :P

but tnx for the links -theyr useful for some other stuff I'm doing.
brataccas
brataccas
I think you'll have a hard time finding many C-based GUI tutorials. You might want to take a look at Agar for some ideas...it's a C-based GUI that works with SDL.

http://agar.csoft.org/


meeshoo
meeshoo
there are some free openl gui libraries. if you want to build your own it's pretty simple. you draw them over the whole scene, and each one has some properties which specify the way they are drawn and some for keeping their values(if any). then you have to track the mouse for events and to assign to each object some callback function. this can be done very easelly in a scripting language, if you application has something like this.
DMINATOR
DMINATOR
Nice to see another fellow Estonian here. Well I just finished working on GUI a few days ago and with C++ it wasn't that hard when using class deriving , but in C , it would probably mean allot of rewriting the same code all over again.

Well you can atleast check this post , there are some other posts , that I made , just to get the idea how to use virtual functions and callback methods wiht my GUI structure.

http://www.gamedev.net/community/forums/topic.asp?topic_id=341803

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.