coastline 0.0.4
Loading...
Searching...
No Matches
textureentry.h
Go to the documentation of this file.
1#pragma once
2
5
20
23 unsigned char nOption2;
24 int nWidth;
25 int nHeight;
29 int nLod;
31 int bClampS;
32 int bClampT;
35 unsigned dwOption6;
37#if TGR_BRD3D
38 unsigned nColorKey;
39#endif
43 unsigned char *pImage;
44 const unsigned char *pPalette;
50 unsigned dwFlags;
57 unsigned char *apPaintBuffers[4];
59 unsigned char abEnvColor[4];
60 unsigned char abPrimColor[4];
61 unsigned nRowSwapMask;
65};
66
74
83void GetTextureEntryDimensions(int *pWidth, int *pHeight, int nEntry);
84
93void AliasTextureEntrySurface(int nEntry, int nSourceEntry);
94
101extern unsigned g_dwTextureEntryCount;
102
110
118unsigned AllocateTextureEntry(void);
A tile recorded by texture scans and loaded texture entries.
Definition texturetile.h:8
A loaded texture, its image metadata and texture-coordinate scales.
Definition textureentry.h:68
int nTextureId
Definition textureentry.h:69
TextureImageData data
Definition textureentry.h:70
float fTextureScaleT
Definition textureentry.h:72
float fTextureScaleS
Definition textureentry.h:71
Image metadata shared by texture entries and temporary texture conversions.
Definition textureentry.h:21
int nDecodedWidth
Definition textureentry.h:41
int nPaintSet
Definition textureentry.h:54
int bClampS
Definition textureentry.h:31
int nOption7
Definition textureentry.h:36
int bMirrorS
Definition textureentry.h:45
int nLod
Definition textureentry.h:29
unsigned char abEnvColor[4]
Definition textureentry.h:59
int nTileLimit
Definition textureentry.h:48
int nDecodedBytes
Definition textureentry.h:62
unsigned char * apPaintBuffers[4]
Definition textureentry.h:57
unsigned nRowSwapMask
Definition textureentry.h:61
const unsigned char * pPalette
Definition textureentry.h:44
unsigned char * pImage
Definition textureentry.h:43
int bColorCombine
Definition textureentry.h:51
int nPixelBytes
Definition textureentry.h:40
unsigned dwOption6
Definition textureentry.h:35
int nPaintGroup
Definition textureentry.h:53
int nAspectRatio
Definition textureentry.h:30
int nOption1
Definition textureentry.h:22
int nDamageLevel
Definition textureentry.h:55
int nOption3
Definition textureentry.h:27
int nPixelFormatId
Definition textureentry.h:26
unsigned nPaintPixelBytes
Definition textureentry.h:58
unsigned char nOption2
Definition textureentry.h:23
TexScanTile aTiles[TEX_SCAN_TILE_COUNT]
Definition textureentry.h:49
int nHeight
Definition textureentry.h:25
int nDecodedHeight
Definition textureentry.h:42
int bOwnsPaintBuffers
Definition textureentry.h:52
int nSourceHeight
Definition textureentry.h:64
int bHasTintPixels
Definition textureentry.h:56
int nTileIndex
Definition textureentry.h:47
int nLargestLod
Definition textureentry.h:28
int nOption5
Definition textureentry.h:34
int nOption4
Definition textureentry.h:33
int nWidth
Definition textureentry.h:24
int bClampT
Definition textureentry.h:32
unsigned dwFlags
Definition textureentry.h:50
unsigned char abPrimColor[4]
Definition textureentry.h:60
int bMirrorT
Definition textureentry.h:46
int nSourceWidth
Definition textureentry.h:63
TextureEntry * g_pTextureEntries
The textures the game loaded.
unsigned AllocateTextureEntry(void)
Append an uninitialised texture entry, expanding storage in blocks of 256 entries as needed.
void AliasTextureEntrySurface(int nEntry, int nSourceEntry)
Make a texture the game loaded draw with the texture of another.
RenderStateDirtyBit
The bits of g_dwDirtyRenderStateMask, one for each render state the game caches.
Definition textureentry.h:7
@ RENDER_STATE_DIRTY_DEST_BLEND
Definition textureentry.h:11
@ RENDER_STATE_DIRTY_ADDRESS_V
Definition textureentry.h:17
@ RENDER_STATE_DIRTY_CULL_MODE
Definition textureentry.h:12
@ RENDER_STATE_DIRTY_Z_WRITE_ENABLE
Definition textureentry.h:8
@ RENDER_STATE_DIRTY_ADDRESS_U
Definition textureentry.h:16
@ RENDER_STATE_DIRTY_ALPHA_TEST_ENABLE
Definition textureentry.h:9
@ RENDER_STATE_DIRTY_ALPHA_REF
Definition textureentry.h:14
@ RENDER_STATE_DIRTY_Z_FUNC
Definition textureentry.h:13
@ RENDER_STATE_DIRTY_ALPHA_FUNC
Definition textureentry.h:15
@ RENDER_STATE_DIRTY_ALPHA_BLEND_ENABLE
Definition textureentry.h:18
@ RENDER_STATE_DIRTY_SRC_BLEND
Definition textureentry.h:10
void GetTextureEntryDimensions(int *pWidth, int *pHeight, int nEntry)
Get the size of a texture the game loaded.
unsigned g_dwTextureEntryCount
The number of entries of g_pTextureEntries.
#define TEX_SCAN_TILE_COUNT
The number of tile records in a scan or loaded texture entry.
Definition texturetile.h:28