292f9317 |
1 | /* |
2 | Copyright (C) 2003 Rice1964 |
3 | |
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. |
8 | |
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. |
13 | |
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. |
17 | */ |
18 | |
19 | #ifndef _OGL_EXT_RENDER_H_ |
20 | #define _OGL_EXT_RENDER_H_ |
21 | |
22 | #include "OGLRender.h" |
23 | |
24 | class COGLExtRender : public OGLRender |
25 | { |
26 | public: |
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(); |
38 | |
39 | void SetTextureToTextureUnitMap(int tex, int unit); |
40 | |
41 | protected: |
42 | friend class OGLDeviceBuilder; |
43 | COGLExtRender() {}; |
44 | ~COGLExtRender() {}; |
45 | GLint m_maxTexUnits; |
46 | int m_textureUnitMap[8]; |
47 | }; |
48 | |
49 | #endif |
50 | |