Path: blob/master/libmupen64plus/mupen64plus-video-rice/src/OGLExtRender.h
2 views
/*1Copyright (C) 2003 Rice196423This program is free software; you can redistribute it and/or4modify it under the terms of the GNU General Public License5as published by the Free Software Foundation; either version 26of the License, or (at your option) any later version.78This program is distributed in the hope that it will be useful,9but WITHOUT ANY WARRANTY; without even the implied warranty of10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the11GNU General Public License for more details.1213You should have received a copy of the GNU General Public License14along with this program; if not, write to the Free Software15Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.16*/1718#ifndef _OGL_EXT_RENDER_H_19#define _OGL_EXT_RENDER_H_2021#include "OGLRender.h"2223class COGLExtRender : public OGLRender24{25public:26void Initialize(void);27void BindTexture(GLuint texture, int unitno);28void DisBindTexture(GLuint texture, int unitno);29void TexCoord2f(float u, float v);30void TexCoord(TLITVERTEX &vtxInfo);31void SetTextureUFlag(TextureUVFlag dwFlag, uint32 tile);32void SetTextureVFlag(TextureUVFlag dwFlag, uint32 tile);33void EnableTexUnit(int unitno, BOOL flag);34void SetTexWrapS(int unitno,GLuint flag);35void SetTexWrapT(int unitno,GLuint flag);36void ApplyTextureFilter();3738void SetTextureToTextureUnitMap(int tex, int unit);3940protected:41friend class OGLDeviceBuilder;42COGLExtRender() {};43~COGLExtRender() {};44GLint m_maxTexUnits;45int m_textureUnitMap[8];46};4748#endif49505152