Added missing launcher
[mupen64plus-pandora.git] / CachedTexture.h
... / ...
CommitLineData
1/******************************************************************************
2 * Arachnoid Graphics Plugin for Mupen64Plus
3 * http://bitbucket.org/wahrhaft/mupen64plus-video-arachnoid/
4 *
5 * Copyright (C) 2007 Kristofer Karlsson, Rickard Niklasson
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 *****************************************************************************/
21
22#ifndef CACHED_TEXTURE_H_
23#define CACHED_TEXTURE_H_
24
25//*****************************************************************************
26//* Cached Texture
27//! Struct used by Texture Cache to store used textures.
28//*****************************************************************************
29class CachedTexture
30{
31public:
32
33 //Constructor / Destrucotr
34 CachedTexture();
35 ~CachedTexture();
36
37 //Activate / Deactivate
38 void activate();
39 void deactivate();
40
41 //Get texture size
42 unsigned int getTextureSize() { return m_textureSize; }
43
44 //Assignment operator
45 CachedTexture& operator = (const CachedTexture& v);
46
47 //Equal operator
48 bool operator == (const CachedTexture& t) const;
49
50public:
51
52 unsigned int m_id; //!< id used by OpenGL to identify texture
53 unsigned int m_textureSize; //!< Size of texture in bytes
54
55 unsigned int address;
56 unsigned int crc; //!< A CRC "checksum" (Cyclic redundancy check)
57// float fulS, fulT;
58// unsigned short ulS, ulT, lrS, lrT;
59 float offsetS, offsetT;
60 unsigned int maskS, maskT;
61 unsigned int clampS, clampT;
62 unsigned int mirrorS, mirrorT;
63 unsigned int line;
64 unsigned int size;
65 unsigned int format; //!< Texture format
66 unsigned int tMem;
67 unsigned int palette; //!< What Texture Look Up Table to use
68 unsigned int width, height; //!< N64 width and height
69 unsigned int clampWidth, clampHeight; //!< Size to clamp to
70 unsigned int realWidth, realHeight; //!< Actual texture size
71 float scaleS, scaleT; //!< Scale to map to 0.0-1.0
72 float shiftScaleS, shiftScaleT; //!< Scale to shift
73// unsigned int lastDList;
74// unsigned int frameBufferTexture;
75
76};
77
78#endif