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

Author Topic: Chain of transformation, how to?  (Read 7892 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Chain of transformation, how to?
« Reply #15 on: January 02, 2011, 11:13:25 pm »
Quote
Should I expect some troubles between my SpriteExt and base SFMP-API ?

Yes: you can't write it :lol:

If you do it 100% with OpenGL, you won't be able to use the sfml-graphics internal stuff (render windows, views, shaders, etc.) It won't be integrated at all like SFML drawables.

If you want to integrate it to SFML you have to inherit from sf::Drawable, but this class already implements what you want to get rid of.
Laurent Gomila - SFML developer

kkray

  • Newbie
  • *
  • Posts: 12
    • View Profile
Chain of transformation, how to?
« Reply #16 on: January 02, 2011, 11:24:49 pm »
Hm.... I was going to inherit my class from sf::Drawable :)
In any case, I am going to try :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Chain of transformation, how to?
« Reply #17 on: January 02, 2011, 11:31:48 pm »
Quote
Hm.... I was going to inherit my class from sf::Drawable

Doesn't make sense. You'll get all the transformation setters/getters that you want to avoid, and it will be applied automatically, you can't replace it with your own transform system.
Laurent Gomila - SFML developer

kkray

  • Newbie
  • *
  • Posts: 12
    • View Profile
Chain of transformation, how to?
« Reply #18 on: January 02, 2011, 11:38:06 pm »
Oh noooo... :'(
What should I do?
I realy, realy need chain of transformations for sprites.

kkray

  • Newbie
  • *
  • Posts: 12
    • View Profile
Chain of transformation, how to?
« Reply #19 on: January 02, 2011, 11:40:16 pm »
I want sf::Sprite::SetMatrix :D

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Chain of transformation, how to?
« Reply #20 on: January 03, 2011, 08:44:00 am »
Quote
I realy, realy need chain of transformations for sprites.

If you wait a little bit, it should be available soon in SFML 2.
Laurent Gomila - SFML developer

kkray

  • Newbie
  • *
  • Posts: 12
    • View Profile
Chain of transformation, how to?
« Reply #21 on: January 03, 2011, 05:01:52 pm »
Oh, it's great! How soon? :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Chain of transformation, how to?
« Reply #22 on: January 03, 2011, 07:05:46 pm »
Don't know... maybe never 8)
Laurent Gomila - SFML developer

 

anything