From bda9ef9345786d48fd0d98b0855ce965e1028b2f Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 5 May 2016 23:48:06 +0800 Subject: Add support for batching vertices with custom indices. Fix compiler warnings. --- include/smelt.hpp | 3 ++- include/smttfont.hpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/smelt.hpp b/include/smelt.hpp index 3894e34..40bc52f 100644 --- a/include/smelt.hpp +++ b/include/smelt.hpp @@ -22,7 +22,7 @@ * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License - * along with Foobar. If not, see . + * along with SMELT. If not, see . * */ @@ -362,6 +362,7 @@ public: virtual void smRenderQuad(smQuad *q)=0; virtual smVertex* smGetVertArray()=0; virtual void smDrawVertArray(int prim,SMTEX texture,int blend,int _primcnt)=0; + virtual void smDrawCustomIndexedVertices(smVertex* vb,WORD* ib,int vbc,int ibc,int blend,SMTEX texture)=0; virtual SMTRG smTargetCreate(int w,int h)=0; virtual SMTEX smTargetTexture(SMTRG targ)=0; diff --git a/include/smttfont.hpp b/include/smttfont.hpp index 777d8ed..0f87b1c 100644 --- a/include/smttfont.hpp +++ b/include/smttfont.hpp @@ -42,7 +42,7 @@ protected: FT_Library ftlib; FT_Face ttface; private: - wchar_t buf[1024]; + wchar_t buf[1025]; std::map chars; float w,h; public: -- cgit v1.2.3