@@ -13,6 +13,8 @@
#include "texture_ext.h"
+#ifdef HAVE_PYTHON
+
#ifndef CPPPARSER
extern Dtool_PyTypedObject Dtool_PointerToArray_unsigned_char;
extern Dtool_PyTypedObject Dtool_ConstPointerToArray_unsigned_char;
@@ -145,3 +147,5 @@ set_ram_image_as(PyObject *image, const string &provided_format) {
Dtool_Raise_ArgTypeError(image, 0, "Texture.set_ram_image_as", "CPTA_uchar or buffer");
}
+#endif // HAVE_PYTHON
@@ -20,6 +20,8 @@
#include "py_panda.h"
#include "texture.h"
/**
* This class defines the extension methods for Texture, which are
* called instead of any C++ methods with the same prototype.
@@ -32,6 +34,8 @@ public:
void set_ram_image_as(PyObject *image, const string &provided_format);
};
#endif // CPPPARSER
#endif // TEXTURE_EXT_H