2 Copyright (C) 2003 Rice1964
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 #ifndef _OGL_EXT_RENDER_H_
20 #define _OGL_EXT_RENDER_H_
22 #include "OGLRender.h"
24 class COGLExtRender : public OGLRender
27 void Initialize(void);
28 void BindTexture(GLuint texture, int unitno);
29 void DisBindTexture(GLuint texture, int unitno);
30 void TexCoord2f(float u, float v);
31 void TexCoord(TLITVERTEX &vtxInfo);
32 void SetTextureUFlag(TextureUVFlag dwFlag, uint32 tile);
33 void SetTextureVFlag(TextureUVFlag dwFlag, uint32 tile);
34 void EnableTexUnit(int unitno, BOOL flag);
35 void SetTexWrapS(int unitno,GLuint flag);
36 void SetTexWrapT(int unitno,GLuint flag);
37 void ApplyTextureFilter();
39 void SetTextureToTextureUnitMap(int tex, int unit);
42 friend class OGLDeviceBuilder;
46 int m_textureUnitMap[8];