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

Author Topic: Creating rectangle shapes inside a class.  (Read 1103 times)

0 Members and 1 Guest are viewing this topic.

Avengedalice

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Creating rectangle shapes inside a class.
« on: June 19, 2013, 08:00:57 am »
I'm trying to create a rectangle shape to be used within a class, but I'm only able to create the rectangle shape within one of the private or public members. Is there a way to create the rectangle shape inside the class, so that I am able to use the shape for every class member within that class.

Does it matter where I create the rectangle shape?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Creating rectangle shapes inside a class.
« Reply #1 on: June 19, 2013, 08:35:06 am »
Please don't post in the C forum if your problem is not related to the C binding of SFML.

And can you describe your problem more clearly, possibly with code? Of course you can choose where to declare your rectangle shape, as long as C++ allows it...
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Avengedalice

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Creating rectangle shapes inside a class.
« Reply #2 on: June 19, 2013, 07:34:50 pm »
Sorry, kinda new to this whole forum thing. thanks.