From: Nigel P. <ni...@in...> - 2002-03-17 23:12:42
|
Christian proposed: > Now would be a good time to do that augmentation. Here's a draft: > > - struct video_mode remains as it is now > - the global VideoModes vector is removed > - struct monitor_desc gets transformed into an abstract base class: ... > - the global VideoMonitor variable gets replaced by a=20 > vector<monitor_desc *> > which is filled in by VideoInit() That looks OK, though for Mac OS X I still have a desire to = store an extra field in the monitor_desc, and ideally an extra one in video_mode. 1) Can I somehow subclass monitor_desc it in this situation? 2) Would the definition of this vector have to be in video_<host>.cpp to enable me to subclass it? ... > - the Mac video driver code can determine the monitor_desc its=20 > associated > with by looking at its dCtlSlotId and scanning the monitor_desc = vector > (or maybe it would be better to have a map<uint8, monitor_desc *>?) a) I think having a map<> would be much tidier b) Preventing having to search through stuff is why I would like to add a generic platform-specific field into the two video struct/classes -- |Nigel Pearson, ni...@in... |=93Now the world has gone to = bed,| |Telstra iDevelopments, Sydney Australia| Darkness won=92t engulf my = head,| | Office: 9206 3468 Fax: 9212 6329 | I can see by infrared, = | | Mobile: 0408 664435 Home: 9792 6998 | How I hate the night.=94 = -Marvin| |