mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31:05 +08:00
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1017 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
ebdee32601
commit
4a3d6b171c
@ -1,6 +1,6 @@
|
||||
Metadata-Version: 1.0
|
||||
Name: PySFML
|
||||
Version: 1.4
|
||||
Version: 1.5
|
||||
Summary: Python binding for SFML (Simple and Fast Multimedia Library)
|
||||
Home-page: http://sfml.sourceforge.net/
|
||||
Author: Rémi Koenig
|
||||
|
@ -4,7 +4,7 @@
|
||||
from distutils.core import setup, Extension
|
||||
|
||||
setup(name='PySFML',
|
||||
version='1.4',
|
||||
version='1.5',
|
||||
description='Python binding for SFML (Simple and Fast Multimedia Library)',
|
||||
author='Rémi Koenig',
|
||||
author_email='remi.k2620@gmail.com',
|
||||
|
@ -145,7 +145,7 @@ PyTypeObject PySfColorType = {
|
||||
PySfColor *
|
||||
GetNewPySfColor()
|
||||
{
|
||||
return PyObject_New(PySfColor, &PySfColorType);
|
||||
return (PySfColor *)PySfColor_new(&PySfColorType, NULL, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -302,4 +302,10 @@ PyTypeObject PySfDrawableType = {
|
||||
PySfDrawable_new, /* tp_new */
|
||||
};
|
||||
|
||||
PySfDrawable *
|
||||
GetNewPySfDrawable()
|
||||
{
|
||||
return (PySfDrawable *)PySfDrawable_new(&PySfDrawableType, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,5 +50,8 @@ typedef struct {
|
||||
CustomDrawable *obj;
|
||||
} PySfDrawable;
|
||||
|
||||
PySfDrawable *
|
||||
GetNewPySfDrawable();
|
||||
|
||||
#endif
|
||||
|
||||
|
@ -414,6 +414,6 @@ PySfImage_Copy(PySfImage* self, PyObject *args)
|
||||
PySfImage *
|
||||
GetNewPySfImage()
|
||||
{
|
||||
return PyObject_New(PySfImage, &PySfImageType);
|
||||
return (PySfImage *)PySfImage_new(&PySfImageType, NULL, NULL);
|
||||
}
|
||||
|
||||
|
@ -162,6 +162,6 @@ PyTypeObject PySfInputType = {
|
||||
PySfInput *
|
||||
GetNewPySfInput()
|
||||
{
|
||||
return PyObject_New(PySfInput, &PySfInputType);
|
||||
return (PySfInput *)PySfInput_new(&PySfInputType, NULL, NULL);
|
||||
}
|
||||
|
||||
|
@ -425,13 +425,13 @@ PySfFloatRectUpdateSelf(PySfFloatRect *self)
|
||||
PySfIntRect *
|
||||
GetNewPySfIntRect()
|
||||
{
|
||||
return PyObject_New(PySfIntRect, &PySfIntRectType);
|
||||
return (PySfIntRect *)PySfIntRect_new(&PySfIntRectType, NULL, NULL);
|
||||
}
|
||||
|
||||
PySfFloatRect *
|
||||
GetNewPySfFloatRect()
|
||||
{
|
||||
return PyObject_New(PySfFloatRect, &PySfFloatRectType);
|
||||
return (PySfFloatRect *)PySfFloatRect_new(&PySfFloatRectType, NULL, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
@ -391,6 +391,6 @@ PyTypeObject PySfShapeType = {
|
||||
PySfShape *
|
||||
GetNewPySfShape()
|
||||
{
|
||||
return PyObject_New(PySfShape, &PySfShapeType);
|
||||
return (PySfShape *)PySfShape_new(&PySfShapeType, NULL, NULL);
|
||||
}
|
||||
|
||||
|
@ -213,6 +213,6 @@ PySfSoundBuffer_init(PySfSoundBuffer *self, PyObject *args, PyObject *kwds)
|
||||
PySfSoundBuffer *
|
||||
GetNewPySfSoundBuffer()
|
||||
{
|
||||
return PyObject_New(PySfSoundBuffer, &PySfSoundBufferType);
|
||||
return (PySfSoundBuffer *)PySfSoundBuffer_new(&PySfSoundBufferType, NULL, NULL);
|
||||
}
|
||||
|
||||
|
@ -126,6 +126,6 @@ PyTypeObject PySfWindowSettingsType = {
|
||||
PySfWindowSettings *
|
||||
GetNewPySfWindowSettings()
|
||||
{
|
||||
return PyObject_New(PySfWindowSettings, &PySfWindowSettingsType);
|
||||
return (PySfWindowSettings *)PySfWindowSettings_new(&PySfWindowSettingsType, NULL, NULL);
|
||||
}
|
||||
|
||||
|
@ -260,7 +260,7 @@ initsf(void)
|
||||
Py_INCREF(&PySfListenerType);
|
||||
PyModule_AddObject(m, "Listener", (PyObject *)&PySfListenerType);
|
||||
|
||||
PyModule_AddStringConstant(m, "Version", "1.4");
|
||||
PyModule_AddStringConstant(m, "Version", "1.5");
|
||||
|
||||
PySfColor_InitConst();
|
||||
PySfKey_InitConst();
|
||||
|
Loading…
Reference in New Issue
Block a user