Added a binding for the sfShape abstract class

This commit is contained in:
Laurent Gomila committed 2012-03-04 14:56:28 +01:00
1 parent 44c5f2d00a
commit 0b2a231121
9 files changed
+852 -1

No files matched your search

+6
View File
@@ -30,6 +30,7 @@
#include <SFML/Graphics/ImageStruct.h>
#include <SFML/Graphics/SpriteStruct.h>
#include <SFML/Graphics/TextStruct.h>
#include <SFML/Graphics/ShapeStruct.h>
#include <SFML/Graphics/CircleShapeStruct.h>
#include <SFML/Graphics/ConvexShapeStruct.h>
#include <SFML/Graphics/RectangleShapeStruct.h>
@@ -355,6 +356,11 @@ void sfRenderWindow_DrawText(sfRenderWindow* renderWindow, const sfText* object,
CSFML_CHECK(object);
CSFML_CALL(renderWindow, Draw(object->This, ConvertRenderStates(states)));
}
void sfRenderWindow_DrawShape(sfRenderWindow* renderWindow, const sfShape* object, const sfRenderStates* states)
{
CSFML_CHECK(object);
CSFML_CALL(renderWindow, Draw(object->This, ConvertRenderStates(states)));
}
void sfRenderWindow_DrawCircleShape(sfRenderWindow* renderWindow, const sfCircleShape* object, const sfRenderStates* states)
{
CSFML_CHECK(object);