GUI in my app
Im wondering wether to use a already finished gui-library or make my own. is it hard to make your own? doesn anybody know a good library?
reality is only an option
I use QT
If God played dice, He''d win.
—Ian Stewart, Does God Play Dice? The Mathematics of Chaos
If God played dice, He''d win.
—Ian Stewart, Does God Play Dice? The Mathematics of Chaos
i made my own, not horribly difficult, and i began with an article hosted here at gamedev.(named something like "A GUI in DirectX")
i found it pretty rewarding, the only part i found difficult was making the interface intuitive and im still messing around with serialization.
Dredd
________________________________________
"To die with your sword still in its sheath is most regrettable" -- Miyomoto Musashi
i found it pretty rewarding, the only part i found difficult was making the interface intuitive and im still messing around with serialization.
Dredd
________________________________________
"To die with your sword still in its sheath is most regrettable" -- Miyomoto Musashi
I''ve decided to try to take on the task myself using a scripting system which is loaded on app startup. I have one base class which contains members and methods which are common to any type of control you can think of be it a button, textbox, listbox, etc. and then build them up from there.
If you''re up for the challenege I''m sure it''s much more rewarding when you complete your own and see it rendering on the screen for the first time, but if you''d rather focus more on gameplay than the entire engine itself maybe using a pre-defined library might be your option.
Permafried-
If you''re up for the challenege I''m sure it''s much more rewarding when you complete your own and see it rendering on the screen for the first time, but if you''d rather focus more on gameplay than the entire engine itself maybe using a pre-defined library might be your option.
Permafried-
Most GUI''s in games are self coded and it''s probably the best way to go. The front end of many games consists of little more than a menu or something. For a complex windowed game, like a chess game, you mgiht consider using the Windows interfaces.
Mark
Ever wanted to command a starship?
http://www.lostinflatspace.com
Mark
Ever wanted to command a starship?
http://www.lostinflatspace.com
Coding your own gui can be easy but put some thought and time into desiging it.
I also suggest using Xml to persist it so it''s easy to edit
I also suggest using Xml to persist it so it''s easy to edit
If you''re using DX, making a GUI is very simple; just use pre-transformed quads and ID3DXFont.
I''ve got a fairly robust GUI implemented now that can draw about 500 windows full of buttons, text, and whatnot before any slowdown is observed.
I''ve got a fairly robust GUI implemented now that can draw about 500 windows full of buttons, text, and whatnot before any slowdown is observed.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement