The previous texture_memory_alloc.hpp was written based on an incorrect understanding of the "32-bit" and "64-bit" texture memory address mapping. The primary motivation is to rearrange the texture memory address map so that "textures" (64-bit access) do not overlap with 32-bit accesses, such as REGION_BASE or PARAM_BASE.
29 lines
776 B
C++
29 lines
776 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "../holly/ta_parameter.hpp"
|
|
|
|
namespace font_bitmap {
|
|
|
|
uint32_t inflate(const uint32_t pitch,
|
|
const uint32_t width,
|
|
const uint32_t height,
|
|
const uint32_t texture_width,
|
|
const uint32_t texture_height,
|
|
const uint8_t * src);
|
|
|
|
void transform_string(ta_parameter_writer& parameter,
|
|
const uint32_t texture_width,
|
|
const uint32_t texture_height,
|
|
const uint32_t glyph_width,
|
|
const uint32_t glyph_height,
|
|
const int32_t position_x,
|
|
const int32_t position_y,
|
|
const char * s,
|
|
const int32_t len,
|
|
const uint32_t list_type
|
|
);
|
|
|
|
}
|