Bienvenue, Invité. Merci de vous connecter ou de vous inscrire.
Avez-vous perdu votre e-mail d'activation ?

Auteur Sujet: How To : sfShape_create  (Lu 2404 fois)

0 Membres et 1 Invité sur ce sujet

Goras

  • Newbie
  • *
  • Messages: 4
    • Voir le profil
    • E-mail
How To : sfShape_create
« le: Janvier 22, 2018, 04:56:13 pm »
Hi,

I am looking to make a triangle with the sfShape structure, but I can't figure out what I have to pass in params for the sfShape_create.

I am looking for an example to understand to 3 params.

And yes I did read the docs of the CSFML, but didn't understand the "(sfShapeGetPointCountCallback getPointCount, sfShapeGetPointCallback getPoint, void* userData)".

I am currently trying to init a sfShapeGetPointCountCallback and sfShapeGetPointCallback variables, but I don't know how to do it too...

So thanks for your help if you have any idea.