Animation sequence class

This is a discussion on Animation sequence class within the Game Programming forums, part of the General Programming Boards category; For those of you that are doing animations in your games and don't have a wrapper for it, here is ...

  1. #1
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596

    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 10:42 AM.

  2. #2
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    Thanks Bubba

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    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, 10:03 PM
  3. Animation class not working
    By VirtualAce in forum Game Programming
    Replies: 5
    Last Post: 03-02-2005, 05:48 AM
  4. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 06:18 AM
  5. Abstract class problem
    By VanJay011379 in forum C++ Programming
    Replies: 9
    Last Post: 07-31-2002, 01:30 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21