From 1eb88d4f5d5cb05d62be1d4a0c88c7399f7c0de0 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sat, 3 Feb 2018 00:55:26 +0800 Subject: Added the GL 3.2+ port. Fixed poor performance of the truetype renderer. (Partially) Fixed texture locking. Minor addition and fixes to the math library. --- smelt/sdl/CxImage/ximalyr.cpp | 116 ------------------------------------------ 1 file changed, 116 deletions(-) delete mode 100644 smelt/sdl/CxImage/ximalyr.cpp (limited to 'smelt/sdl/CxImage/ximalyr.cpp') diff --git a/smelt/sdl/CxImage/ximalyr.cpp b/smelt/sdl/CxImage/ximalyr.cpp deleted file mode 100644 index 23dc226..0000000 --- a/smelt/sdl/CxImage/ximalyr.cpp +++ /dev/null @@ -1,116 +0,0 @@ -// xImaLyr.cpp : Layers functions -/* 21/04/2003 v1.00 - Davide Pizzolato - www.xdp.it - * CxImage version 7.0.0 31/Dec/2010 - */ - -#include "ximage.h" - -#if CXIMAGE_SUPPORT_LAYERS - -//////////////////////////////////////////////////////////////////////////////// -/** - * If the object is an internal layer, GetParent return its parent in the hierarchy. - */ -CxImage* CxImage::GetParent() const -{ - return info.pParent; -} -//////////////////////////////////////////////////////////////////////////////// -/** - * Number of layers allocated directly by the object. - */ -int32_t CxImage::GetNumLayers() const -{ - return info.nNumLayers; -} -//////////////////////////////////////////////////////////////////////////////// -/** - * Creates an empty layer. If position is less than 0, the new layer will be placed in the last position - */ -bool CxImage::LayerCreate(int32_t position) -{ - if ( position < 0 || position > info.nNumLayers ) position = info.nNumLayers; - - CxImage** ptmp = new CxImage*[info.nNumLayers + 1]; - if (ptmp==0) return false; - - int32_t i=0; - for (int32_t n=0; ninfo.pParent = this; - } else { - free(ptmp); - return false; - } - - info.nNumLayers++; - delete [] ppLayers; - ppLayers = ptmp; - return true; -} -//////////////////////////////////////////////////////////////////////////////// -/** - * Deletes a layer. If position is less than 0, the last layer will be deleted - */ -bool CxImage::LayerDelete(int32_t position) -{ - if ( position >= info.nNumLayers ) return false; - if ( position < 0) position = info.nNumLayers - 1; - if ( position < 0) return false; - - if (info.nNumLayers>1){ - - CxImage** ptmp = new CxImage*[info.nNumLayers - 1]; - if (ptmp==0) return false; - - int32_t i=0; - for (int32_t n=0; n= info.nNumLayers ) return NULL; - if ( position < 0) position = info.nNumLayers - 1; - return ppLayers[position]; -} -//////////////////////////////////////////////////////////////////////////////// -#endif //CXIMAGE_SUPPORT_LAYERS -- cgit v1.2.3