Re: stk and the Dreamcast
Marc Strämke <[email protected]> Tue, 22 Jul 2003 22:41:56 +0200
| Newsgroups | gmane.comp.embedded.stk.gui.devel |
|---|---|
| Message-ID | <[email protected]> |
Mike Melanson wrote: > On 22 Jul 2003, Darren Vincent Hart wrote: > > >>Libstk has an abstract base surface classes which all backend surface >>classes derive from. So pixel-by-pixel drawing routines are used only >>if the backend class hasn't overridden them. We would have to write a >>stk::surface_dreamcast backend class (we currently have >>stk::surface_sdl, stk::surface_dfb, and stk::surface_fbdev). > > > I have the worst aversion to C++ and OOP. But I will see if I can > put that aside for now...:) I'm looking at the class definition for > stk::surface. I need to implement all of the pure virtual functions, Not exactly, there is a templated helper class which can be inserted into the class hierachie between the surface interface and the implementation which implements functions as a pixel by pixel access to the graphics card, so the smallest possible backend only ovverides the set_pixel calls. (Look at surface_dfb.cpp for a very simple backend(Read Incomplete/Hacked)) > right? What do the *_aa() functions do? Anti-aliasing? Yes basicly they are for anti aliasing (darren is the specialist for this stuff ;) ). > > Thanks... > -- > -Mike Melanson