Click here to Skip to main content
16,021,211 members
Home / Discussions / Game Development
   

Game Development

 
GeneralRe: 'Self-aware' classes? Pin
Purge1t31-Oct-11 14:26
Purge1t31-Oct-11 14:26 
GeneralRe: 'Self-aware' classes? Pin
CDP180231-Oct-11 15:39
CDP180231-Oct-11 15:39 
AnswerRe: 'Self-aware' classes? Pin
_Maxxx_31-Oct-11 18:33
professional_Maxxx_31-Oct-11 18:33 
Questionmodel, shade, looksRealistic OpenGL Pin
appollosputnik25-Oct-11 3:34
appollosputnik25-Oct-11 3:34 
AnswerRe: model, shade, looksRealistic OpenGL Pin
CDP180225-Oct-11 5:10
CDP180225-Oct-11 5:10 
QuestionHow to set pixelz using XNA and C# Pin
CDP180213-Oct-11 21:57
CDP180213-Oct-11 21:57 
AnswerRe: How to set pixelz using XNA and C# Pin
rj4524-Oct-11 11:54
rj4524-Oct-11 11:54 
GeneralRe: How to set pixelz using XNA and C# Pin
CDP180225-Oct-11 2:02
CDP180225-Oct-11 2:02 
A reply! Great! Have some points alone for that.

rj45 wrote:
Access it through a singleton.


That's what I also thought. But that's where it really gets complicated. The required object for initialisation would be the user interface object itself. It loads graphics assets, loads configurations, loads themes and styles, sets up the input devices, starts and controls the input thread, starts and controls the rendering thread and also starts and controls the UI thread.

This single object holds everything together and new controls would need a reference to it in its constructor to get acces to the current theme and also some other initialisations. Making this object a singleton would be problematic, but up to now it's also the only way I see.


rj45 wrote:
For instance when I derive from usercontrol in wpf the answer is to make the
control an agregate of a new control and in that way you can better control the
auto generated xaml. In other words wrap it with another control is often the
way. Is that a hack? Yes, but surely the best way.


The controls I have up to now form a class hierarchy. Some also use child controls like buttons ore scrollbars internally, so I'm already 'wrapping' them. This also makes it possible to extend this hierarchy as needed.


rj45 wrote:
I may not understand your question I'm just letting you know what comes to mind.


That's quite ok. The whole thing has reached some complexity and it's hard to describe the problem at hand without getting into this complexity. I probably already could write a book about it Smile | :)
And from the clouds a mighty voice spoke:
"Smile and be happy, for it could come worse!"

And I smiled and was happy
And it came worse.



Questioni need your help Pin
gif202014-Sep-11 1:39
gif202014-Sep-11 1:39 
AnswerRe: i need your help Pin
Pete O'Hanlon14-Sep-11 2:13
mvePete O'Hanlon14-Sep-11 2:13 
GeneralRe: i need your help Pin
gif202014-Sep-11 6:10
gif202014-Sep-11 6:10 
GeneralRe: i need your help Pin
Pete O'Hanlon14-Sep-11 6:47
mvePete O'Hanlon14-Sep-11 6:47 
GeneralRe: i need your help Pin
gif202014-Sep-11 8:33
gif202014-Sep-11 8:33 
AnswerRe: i need your help Pin
Mahdi Nejadsahebi25-Sep-11 1:01
Mahdi Nejadsahebi25-Sep-11 1:01 
AnswerRe: i need your help Pin
Paul Conrad25-Oct-11 6:01
professionalPaul Conrad25-Oct-11 6:01 
AnswerRe: i need your help Pin
Peter Hawke28-Dec-11 13:03
Peter Hawke28-Dec-11 13:03 
QuestionMy first released game Pin
Thomas.D Williams21-Jul-11 5:18
Thomas.D Williams21-Jul-11 5:18 
AnswerRe: My first released game Pin
Richard MacCutchan28-Jul-11 3:41
mveRichard MacCutchan28-Jul-11 3:41 
GeneralRe: My first released game Pin
Thomas.D Williams28-Jul-11 6:06
Thomas.D Williams28-Jul-11 6:06 
GeneralRe: My first released game PinPopular
Richard MacCutchan28-Jul-11 6:10
mveRichard MacCutchan28-Jul-11 6:10 
GeneralRe: My first released game [modified] Pin
Rakesh Meel6-Sep-11 1:53
professionalRakesh Meel6-Sep-11 1:53 
GeneralRe: My first released game [modified] Pin
CDP180229-Aug-11 22:47
CDP180229-Aug-11 22:47 
GeneralRe: My first released game Pin
Richard MacCutchan8-Sep-11 7:18
mveRichard MacCutchan8-Sep-11 7:18 
QuestionPlease don't laugh - Flash MX 2004 attachMovie problem Pin
EvScott28-Jun-11 15:42
EvScott28-Jun-11 15:42 
AnswerRe: Please don't laugh - Flash MX 2004 attachMovie problem Pin
enhzflep28-Jun-11 20:48
enhzflep28-Jun-11 20:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.