Path: blob/master/libmupen64plus/mupen64plus-video-glide64mk2/src/GlideHQ/TxInternal.h
2 views
/*1* Texture Filtering2* Version: 1.03*4* Copyright (C) 2007 Hiroshi Morii All Rights Reserved.5* Email koolsmoky(at)users.sourceforge.net6* Web http://www.3dfxzone.it/koolsmoky7*8* this is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2, or (at your option)11* any later version.12*13* this is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with GNU Make; see the file COPYING. If not, write to20* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.21*/2223#ifndef __INTERNAL_H__24#define __INTERNAL_H__2526#include "Ext_TxFilter.h"2728/* dll exports */29#ifdef TXFILTER_DLL30#define TAPI __declspec(dllexport)31#define TAPIENTRY32#else33#define TAPI34#define TAPIENTRY35#endif3637#include <stdint.h>3839typedef uint8_t uint8;40typedef uint16_t uint16;41typedef uint32_t uint32;4243#ifdef WIN3244#define KBHIT(key) ((GetAsyncKeyState(key) & 0x8001) == 0x8001)45#else46#define KBHIT(key) (0)47#endif4849/* from OpenGL glext.h */50#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F051#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F152#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F253#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F35455/* for explicit fxt1 compression */56#define CC_CHROMA 0x057#define CC_HI 0x158#define CC_ALPHA 0x25960/* in-memory zlib texture compression */61#define GR_TEXFMT_GZ 0x80006263#if 0 /* this is here to remind me of other formats */64/* from 3Dfx Interactive Inc. glide.h */65#define GR_TEXFMT_8BIT 0x066#define GR_TEXFMT_RGB_332 GR_TEXFMT_8BIT67#define GR_TEXFMT_YIQ_422 0x168#define GR_TEXFMT_ALPHA_8 0x2 /* (0..0xFF) alpha */69#define GR_TEXFMT_INTENSITY_8 0x3 /* (0..0xFF) intensity */70#define GR_TEXFMT_ALPHA_INTENSITY_44 0x471#define GR_TEXFMT_P_8 0x5 /* 8-bit palette */72#define GR_TEXFMT_RSVD0 0x6 /* GR_TEXFMT_P_8_RGBA */73#define GR_TEXFMT_P_8_6666 GR_TEXFMT_RSVD074#define GR_TEXFMT_P_8_6666_EXT GR_TEXFMT_RSVD075#define GR_TEXFMT_RSVD1 0x776#define GR_TEXFMT_16BIT 0x877#define GR_TEXFMT_ARGB_8332 GR_TEXFMT_16BIT78#define GR_TEXFMT_AYIQ_8422 0x979#define GR_TEXFMT_RGB_565 0xa80#define GR_TEXFMT_ARGB_1555 0xb81#define GR_TEXFMT_ARGB_4444 0xc82#define GR_TEXFMT_ALPHA_INTENSITY_88 0xd83#define GR_TEXFMT_AP_88 0xe /* 8-bit alpha 8-bit palette */84#define GR_TEXFMT_RSVD2 0xf85#define GR_TEXFMT_RSVD4 GR_TEXFMT_RSVD28687/* from 3Dfx Interactive Inc. g3ext.h */88#define GR_TEXFMT_ARGB_CMP_FXT1 0x1189#define GR_TEXFMT_ARGB_8888 0x1290#define GR_TEXFMT_YUYV_422 0x1391#define GR_TEXFMT_UYVY_422 0x1492#define GR_TEXFMT_AYUV_444 0x1593#define GR_TEXFMT_ARGB_CMP_DXT1 0x1694#define GR_TEXFMT_ARGB_CMP_DXT2 0x1795#define GR_TEXFMT_ARGB_CMP_DXT3 0x1896#define GR_TEXFMT_ARGB_CMP_DXT4 0x1997#define GR_TEXFMT_ARGB_CMP_DXT5 0x1A98#define GR_TEXTFMT_RGB_888 0xFF99#endif100101#endif /* __INTERNAL_H__ */102103104