|
coastline 0.0.4
|
The sizes, the formats, and the colours of the textures of the Glide renderer. More...
Go to the source code of this file.
Functions | |
| int | CalculateMipMapLevel (int *level, int width, int height) |
| Select the Glide mip level for the larger dimension, clamping dimensions above 256. | |
| int | CalculateAspectRatioLevel (int *level, int width, int height) |
| Select the Glide aspect level from the truncated ratio of eight times the larger dimension. | |
| int | GetGlideTexFormatBytesPerPixel (int format) |
| Get one byte for texture formats 2, 3, and 4, and two bytes for other formats. | |
| unsigned | ConvertN64Rgba5551ToArgb1555 (unsigned color) |
| Swap the bytes of an N64 RGBA5551 colour and move its alpha bit to the high bit. | |
The sizes, the formats, and the colours of the textures of the Glide renderer.
| int CalculateMipMapLevel | ( | int * | level, |
| int | width, | ||
| int | height ) |
Select the Glide mip level for the larger dimension, clamping dimensions above 256.
| int CalculateAspectRatioLevel | ( | int * | level, |
| int | width, | ||
| int | height ) |
Select the Glide aspect level from the truncated ratio of eight times the larger dimension.
| int GetGlideTexFormatBytesPerPixel | ( | int | format | ) |
Get one byte for texture formats 2, 3, and 4, and two bytes for other formats.
| unsigned ConvertN64Rgba5551ToArgb1555 | ( | unsigned | color | ) |
Swap the bytes of an N64 RGBA5551 colour and move its alpha bit to the high bit.