Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Doubt in Thor Library - Animator class  (Read 1440 times)

0 Members and 1 Guest are viewing this topic.

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Doubt in Thor Library - Animator class
« on: October 01, 2013, 09:13:45 pm »
Hello

The following statement produces an error:
thor::Animator animator;

Error:
D:\CodeBlocks\SFML 2.1\DP\svn\trunk\Entity.h|53|error: invalid use of template-name 'thor::Animator' without an argument list|

What's wrong?

I'm using Thor 2.0 with SFML 2.1.

Thanks

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Doubt in Thor Library - Animator class
« Reply #1 on: October 01, 2013, 09:44:39 pm »
The error message can't be more clear than that. thor::Animator is a class template (not a class), thus it requires template arguments.

If you have not learned templates yet, I suggest you do that before using Thor; the library uses some advanced C++ techniques.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

The Illusionist Mirage

  • Full Member
  • ***
  • Posts: 115
  • My Life = Linux, C++ & Computers
    • View Profile
    • fleptic
    • Email
Re: Doubt in Thor Library - Animator class
« Reply #2 on: October 02, 2013, 05:21:34 am »
Ok, thanks.