Table of Contents Glide Programming Guide


Chapter 10. Managing Texture Memory 95



Download 6.22 Mb.
Page4/106
Date03.02.2023
Size6.22 Mb.
#60547
1   2   3   4   5   6   7   8   9   ...   106
GLIDEPGM
Chapter 10. Managing Texture Memory 95
1In This Chapter 95
2Texture Map Formats 95
3Narrow Channel Compression 96
4The Color Palette (not implemented in TMU Revision 0) 98
5Texture Memory 99
6Computing the Size of a Mipmap 99
7Querying for Available Memory 102
Example Managing Texture Memory.1 Will the mipmap fit? 103
Example Managing Texture Memory.2 Setting up to load several mipmaps. 103
8Downloading Mipmaps 104
1Downloading All or Part of a Mipmap 104
Figure Managing Texture Memory.3 Downloading a mipmap. 105
2Replacing a Single LOD 106
3Replacing Part of an LOD 107
9Identifying a Mipmap as the Texel Source 108
Example Managing Texture Memory.3 Downloading a texture for decal texture mapping. 109
Example Managing Texture Memory.4 Downloading two textures for modulated or composite texture mapping. 110
Example Managing Texture Memory.5 Splitting a texture across two TMUs for trilinear mipmapping. 111
10Loading a Mipmap into Fragmented Memory 112
Example Managing Texture Memory.6 Using multiple texture base registers. 113
11Downloading a Decompression Table or Color Palette 113
1Decompression Tables 114
Example Managing Texture Memory.7 Loading an NCC table. 115
2Color Palettes 115
Example Managing Texture Memory.8 Loading a color palette. 115
12Loading Mipmaps From Disk 115
Example Managing Texture Memory.9 Reading a .3DF file. 116
Chapter 11. Accessing the Linear Frame Buffer 117
1In This Chapter 117
2Acquiring an LFB Read or Write Pointer 117
3Calculating a Pixel Address 119
4Reading from the LFB 120
Example Accessing the Linear Frame Buffer.1 Reading a pixel value from the LFB. 122
5Reading a Rectangle of Pixels from the LFB 123
6Writing to the LFB 123
7Setting LFB Write Parameters 123
1Linear Frame Buffer Write Modes 124
2Setting Constant Color, Alpha, and Depth Values 127
3Establishing a y Origin 128
8Special Effects and Linear Frame Buffer Writes 128
1Disabling All Special Effects 128
Example Accessing the Linear Frame Buffer.2 Enabling specific special effects. 129
2What Happens When a Special Effect is Enabled During an LFB Write? 129
Example Accessing the Linear Frame Buffer.3 Writing one 565 RGB pixel to the back buffer (RGB ordering). 131
Example Accessing the Linear Frame Buffer.4 Writing two 565 RGB pixels to the back buffer (RGB color ordering). 131
Example Accessing the Linear Frame Buffer.5 Writing one 888 RGB pixel to the back buffer (ARGB color ordering). 131
9Writing a Rectangle of Pixels into the LFB 132

Download 6.22 Mb.

Share with your friends:
1   2   3   4   5   6   7   8   9   ...   106




The database is protected by copyright ©ininet.org 2024
send message

    Main page