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.
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.