Bienvenue, Invité. Merci de vous connecter ou de vous inscrire. Avez-vous oublié d'activer ?

Voir les contributions

Cette section vous permet de consulter les contributions (messages, sujets et fichiers joints) d'un utilisateur. Vous ne pourrez voir que les contributions des zones auxquelles vous avez accès.


Messages - Goras

Pages: [1]
1
C / 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.

Pages: [1]
anything