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_COMBINER_TNT2_H_
20 #define _OGL_COMBINER_TNT2_H_
22 #include <SDL_opengl.h>
24 #define GL_SOURCE3_RGB_EXT 0x8583
25 #define GL_SOURCE3_ALPHA_EXT 0x858B
26 #define GL_OPERAND3_RGB_EXT 0x8593
27 #define GL_OPERAND3_ALPHA_EXT 0x859B
29 #include "OGLExtCombiner.h"
30 #include "OGLDecodedMux.h"
31 #include "CNvTNTCombiner.h"
33 //========================================================================
35 class COGLColorCombinerTNT2 : public COGLColorCombiner4, CNvTNTCombiner
38 bool Initialize(void);
40 friend class OGLDeviceBuilder;
42 void InitCombinerCycle12(void);
44 virtual void GenerateCombinerSetting(int);
45 virtual void GenerateCombinerSettingConstants(int);
47 COGLColorCombinerTNT2(CRender *pRender);
48 ~COGLColorCombinerTNT2() {} ;
50 bool m_bTNT2Supported; // Is this NV OGL extension combiner supported by the video card driver?
53 void DisplaySimpleMuxString(void);
57 virtual GLint MapRGBArgs(uint8 arg);
58 static GLint MapRGBArgFlags(uint8 arg);
59 virtual GLint MapAlphaArgs(uint8 arg);
60 static GLint MapAlphaArgFlags(uint8 arg);
61 static GLint RGBArgsMap[];
62 static const char* GetOpStr(GLenum op);