Sign in to follow this  

This topic is 4487 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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/


Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

This topic is 4487 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this