4
4
mirror of https://github.com/H-uru/korman.git synced 2025-07-13 18:17:38 -04:00

C Korlib code de-duplication

Moves all PyHSPlasma struct definitions into a private header file.
Also adds move constructor and assignment support to PyObjectRef.
This commit is contained in:
2019-01-14 20:50:24 -05:00
parent a3ed2f0178
commit ce6cd0811e
10 changed files with 63 additions and 47 deletions

View File

@ -15,6 +15,7 @@
*/
#include "texture.h"
#include "PyHSPlasma_private.h"
#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
@ -205,12 +206,6 @@ typedef struct {
bool m_imageInverted;
} pyGLTexture;
typedef struct {
PyObject_HEAD
plMipmap* fThis;
bool fPyOwned;
} pyMipmap;
// ===============================================================================================
static void pyGLTexture_dealloc(pyGLTexture* self) {