Thread: Criticise my proposed rendering method

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Criticise my proposed rendering method

    So I was thinking about this:

    Basically I'll have a class, CRenderClass, that looks something like this:

    Code:
    class CRenderTask
    {
    public:
        virtual void Draw() = 0;
    };
    My little rendering system will keep a (std:: )list of these which it will iterate, calling the Draw() function on each one.

    BUT, this means for everything I want to render I'll have to derive a class from this class. Is there a more manageable but similar approach?

    Yes, this is the first time I've written a renderererer.

    Oh yeah:

    SDL. For the Nth time: DirectX can rot until I get some books. Yes books, I mean you.
    Last edited by cboard_member; 04-26-2006 at 10:42 AM.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. on method pointers and inheritance
    By BrownB in forum C++ Programming
    Replies: 2
    Last Post: 03-02-2009, 07:50 PM
  3. Best communication method to thousand childs?
    By Ironic in forum C Programming
    Replies: 8
    Last Post: 11-08-2008, 12:30 AM
  4. Overriding a method in C
    By DavidDobson in forum C Programming
    Replies: 1
    Last Post: 07-05-2008, 07:51 AM
  5. scene graph rendering techniques
    By ichijoji in forum Game Programming
    Replies: 7
    Last Post: 03-19-2006, 12:17 AM