Thread: Animation sequence class

  1. #1
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607

    Animation sequence class

    For those of you that are doing animations in your games and don't have a wrapper for it, here is a class I whipped up last night.

    It is not DirectX nor OpenGL. The class simply deals with a vector of ID's and is designed to be used in conjuction with the game's texture resource manager.
    Frames are simply ID numbers and animation comes down to changing ID's over time.

    It;s my opinion that animation classes should never touch the textures. This allows you to do all the rendering/drawing elsewhere and simplifies the class structure.

    Let me know about bugs, etc.
    Last edited by VirtualAce; 03-12-2011 at 11:42 AM.

  2. #2
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    Thanks Bubba

  3. #3
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    So does it work as expected? It's a simple class but a complex idea that when employed gives a whole lot of power to a very simple system.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inherite nonvirtual class functionality
    By DrSnuggles in forum C++ Programming
    Replies: 2
    Last Post: 04-30-2009, 01:52 PM
  2. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  3. Animation class not working
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 03-02-2005, 06:48 AM
  4. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 07:18 AM