Path: blob/master/libmupen64plus/mupen64plus-video-glide64mk2/src/GlideHQ/TxDbg.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 __TXDBG_H__24#define __TXDBG_H__2526#include <stdio.h>27#include "TxInternal.h"2829class TxDbg30{31private:32FILE* _dbgfile;33int _level;34TxDbg();35public:36static TxDbg* getInstance() {37static TxDbg txDbg;38return &txDbg;39}40~TxDbg();41void output(const int level, const wchar_t *format, ...);42};4344#ifdef DEBUG45#define DBG_INFO(...) TxDbg::getInstance()->output(__VA_ARGS__)46#define INFO(...) DBG_INFO(__VA_ARGS__)47#else48#define DBG_INFO(...)49#ifdef GHQCHK50#define INFO(...) TxDbg::getInstance()->output(__VA_ARGS__)51#else52#if 0 /* XXX enable this to log basic hires texture checks */53#define INFO(...) TxDbg::getInstance()->output(__VA_ARGS__)54#else55#define INFO(...) DBG_INFO(__VA_ARGS__)56#endif57#endif58#endif5960#endif /* __TXDBG_H__ */616263