Click here to Skip to main content
16,007,858 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Singleton template and dll [modified] Pin
Cedric Moonen1-Dec-06 8:12
Cedric Moonen1-Dec-06 8:12 
GeneralRe: Singleton template and dll Pin
CPallini1-Dec-06 9:56
mveCPallini1-Dec-06 9:56 
GeneralRe: Singleton template and dll Pin
Cedric Moonen1-Dec-06 10:19
Cedric Moonen1-Dec-06 10:19 
GeneralRe: Singleton template and dll Pin
led mike1-Dec-06 10:22
led mike1-Dec-06 10:22 
GeneralRe: Singleton template and dll Pin
Cedric Moonen3-Dec-06 22:18
Cedric Moonen3-Dec-06 22:18 
GeneralRe: Singleton template and dll Pin
led mike4-Dec-06 5:48
led mike4-Dec-06 5:48 
GeneralRe: Singleton template and dll Pin
Cedric Moonen4-Dec-06 8:03
Cedric Moonen4-Dec-06 8:03 
GeneralRe: Singleton template and dll Pin
led mike4-Dec-06 9:06
led mike4-Dec-06 9:06 
Cedric Moonen wrote:
Does that make sense ?


Maybe. You are designing a render engine into a DLL library to be used by different applications?

If so you need to keep the "singleton" design out of your library as I stated earlier. That type of "convenience" design should be in the application layer. This would simplify the engine design as well as provide a more flexible use model. The application layer code might or might not use a singleton wrapper for it's engine object depending on the application layer needs.

Perhaps the engine should be able to be built up, using it's interface, with it's constituent parts like the "texture manager(s)" and "scene manager(s)". Thus the engine can still have access to the managers it requires without being a Singleton. Then the application is responsible for these assignments. Responsibility == Flexibility.


led mike

GeneralRe: Singleton template and dll Pin
Cedric Moonen4-Dec-06 9:25
Cedric Moonen4-Dec-06 9:25 
GeneralRe: Singleton template and dll Pin
led mike4-Dec-06 11:00
led mike4-Dec-06 11:00 
GeneralRe: Singleton template and dll Pin
Cedric Moonen4-Dec-06 20:15
Cedric Moonen4-Dec-06 20:15 
GeneralRe: Singleton template and dll Pin
led mike5-Dec-06 6:03
led mike5-Dec-06 6:03 
GeneralRe: Singleton template and dll Pin
Cedric Moonen5-Dec-06 20:31
Cedric Moonen5-Dec-06 20:31 
GeneralRe: Singleton template and dll Pin
led mike6-Dec-06 6:10
led mike6-Dec-06 6:10 
GeneralRe: Singleton template and dll Pin
Cedric Moonen6-Dec-06 8:11
Cedric Moonen6-Dec-06 8:11 
GeneralRe: Singleton template and dll Pin
Rick York1-Dec-06 10:25
mveRick York1-Dec-06 10:25 
GeneralRe: Singleton template and dll Pin
CPallini1-Dec-06 10:32
mveCPallini1-Dec-06 10:32 
QuestionEnumerate DLL Exports Pin
peterchen1-Dec-06 3:46
peterchen1-Dec-06 3:46 
AnswerRe: Enumerate DLL Exports Pin
Mike Dimmick1-Dec-06 4:24
Mike Dimmick1-Dec-06 4:24 
GeneralRe: Enumerate DLL Exports Pin
peterchen1-Dec-06 5:08
peterchen1-Dec-06 5:08 
QuestionWindows class not created error? Pin
TheDelChop1-Dec-06 3:08
TheDelChop1-Dec-06 3:08 
QuestionRe: Windows class not created error? Pin
CPallini1-Dec-06 3:15
mveCPallini1-Dec-06 3:15 
AnswerRe: Windows class not created error? Pin
TheDelChop1-Dec-06 3:17
TheDelChop1-Dec-06 3:17 
GeneralRe: Windows class not created error? Pin
CPallini1-Dec-06 6:26
mveCPallini1-Dec-06 6:26 
GeneralRe: Windows class not created error? Pin
TheDelChop1-Dec-06 7:26
TheDelChop1-Dec-06 7:26 

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.