2021-03-02 02:13:17 +00:00
|
|
|
// Project64 - A Nintendo 64 emulator
|
2021-05-18 11:51:36 +00:00
|
|
|
// https://www.pj64-emu.com/
|
2021-03-02 02:13:17 +00:00
|
|
|
// Copyright(C) 2001-2021 Project64
|
|
|
|
// Copyright(C) 2007 Hiroshi Morii
|
|
|
|
// Copyright(C) 2003 Rice1964
|
|
|
|
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
|
2013-04-17 10:30:38 +00:00
|
|
|
|
|
|
|
#ifndef __INTERNAL_H__
|
|
|
|
#define __INTERNAL_H__
|
|
|
|
|
|
|
|
#include "Ext_TxFilter.h"
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// DLL exports
|
2013-04-17 10:30:38 +00:00
|
|
|
#ifdef TXFILTER_DLL
|
|
|
|
#define TAPI __declspec(dllexport)
|
|
|
|
#define TAPIENTRY
|
|
|
|
#else
|
|
|
|
#define TAPI
|
|
|
|
#define TAPIENTRY
|
|
|
|
#endif
|
|
|
|
|
2021-04-12 06:34:26 +00:00
|
|
|
#include <stdint.h>
|
2013-04-17 10:30:38 +00:00
|
|
|
|
2015-10-14 00:20:03 +00:00
|
|
|
typedef uint8_t uint8;
|
|
|
|
typedef uint16_t uint16;
|
|
|
|
typedef uint32_t uint32;
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
2013-04-17 10:30:38 +00:00
|
|
|
#define KBHIT(key) ((GetAsyncKeyState(key) & 0x8001) == 0x8001)
|
|
|
|
#else
|
|
|
|
#define KBHIT(key) (0)
|
|
|
|
#endif
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// From OpenGL glext.h
|
2013-04-17 10:30:38 +00:00
|
|
|
#define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
|
|
|
|
#define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
|
|
|
|
#define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT 0x83F2
|
|
|
|
#define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT 0x83F3
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// For explicit fxt1 compression
|
2013-04-17 10:30:38 +00:00
|
|
|
#define CC_CHROMA 0x0
|
|
|
|
#define CC_HI 0x1
|
|
|
|
#define CC_ALPHA 0x2
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// In-memory zlib texture compression
|
2013-04-17 10:30:38 +00:00
|
|
|
#define GR_TEXFMT_GZ 0x8000
|
|
|
|
|
|
|
|
#endif /* __INTERNAL_H__ */
|