VDP1 control functions.
#include <srl_vdp1.hpp>
Classes | |
| struct | Texture |
| VDP1 texture. More... | |
| struct | TextureMetadata |
| Metadata for texture. More... | |
Static Public Member Functions | |
| static size_t | GetAvailableMemory () |
| Get free available memory left for textures on VDP1. | |
| static Types::HighColor * | GetGouraudTable () |
| Get the start location of the gouraud table. | |
| static uint16_t | GetTextureCount () |
| Get the number of currently loaded textures. | |
| static void | ResetTextureHeap () |
| Fully reset texture heap. | |
| static void | ResetTextureHeap (const uint16_t index) |
| Reset texture heap to specified index. | |
| static int32_t | TryAllocateTexture (const uint16_t width, const uint16_t height, const CRAM::TextureColorMode colorMode, const uint16_t palette) |
| Try to allocate a texture. | |
| static int32_t | TryLoadTexture (const uint16_t width, const uint16_t height, const CRAM::TextureColorMode colorMode, const uint16_t palette, void *data) |
| Try to load a texture. | |
| static int32_t | TryLoadTexture (SRL::Bitmap::IBitmap *bitmap, const int16_t &palette) |
| Try to load a texture. | |
| static int32_t | TryLoadTexture (SRL::Bitmap::IBitmap *bitmap, int16_t(*paletteHandler)(SRL::Bitmap::BitmapInfo *)=nullptr) |
| Try to load a texture. | |
Static Public Attributes | |
| static const uint32_t | FrontBuffer = 0x25C80000 |
| VDP1 front buffer address. | |
| static TextureMetadata | Metadata [SRL_MAX_TEXTURES] = { TextureMetadata() } |
| Texture metadata. | |
| static Texture | Textures [SRL_MAX_TEXTURES] |
| Texture heap. | |
| static const uint32_t | UserAreaEnd = 0x25C7FEF8 |
| End location of the user area. | |