Radical new example pattern for exposing a C++ class to Python

This commit is contained in:
John McCardle 2024-03-20 21:16:52 -04:00
commit 2cf8f94310
5 changed files with 80 additions and 5 deletions

View file

@ -1085,10 +1085,12 @@ static int PyUIDrawable_set_click(PyUIGridObject* self, PyObject* value, void* c
*
*/
/* // Definition moved to PyTexture.h
typedef struct {
PyObject_HEAD
std::shared_ptr<PyTexture> data;
} PyTextureObject;
static int PyTexture_init(PyTextureObject* self, PyObject* args, PyObject* kwds)
{
@ -1121,6 +1123,7 @@ static int PyUIDrawable_set_click(PyUIGridObject* self, PyObject* value, void* c
return (PyObject*)self;
}
};
*/
/*
*