Added missing launcher
[mupen64plus-pandora.git] / source / gles2rice / src / OGLExtRender.h
... / ...
CommitLineData
1/*
2Copyright (C) 2003 Rice1964
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, 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
24class COGLExtRender : public OGLRender
25{
26public:
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
41protected:
42 friend class OGLDeviceBuilder;
43 COGLExtRender() {};
44 ~COGLExtRender() {};
45 GLint m_maxTexUnits;
46 int m_textureUnitMap[8];
47};
48
49#endif
50