23 uintptr_t pixelsPtr,
u32 pixelsLen,
i32 format,
bool flipY,
u32 content);
25 uintptr_t pixelsPtr,
u32 pixelsLen,
i32 format,
bool flipY,
26 i32 filterMode,
i32 wrapMode,
u32 content);
32 uintptr_t pixelsPtr,
u32 pixelsLen,
i32 format,
33 i32 filterMode,
i32 wrapMode,
u32 content);
35 const std::string& vertSrc,
const std::string& fragSrc);
41 i32 format, uintptr_t dataPtr,
u32 dataLen,
u32 mipLevels,
u32 content);
86#ifdef ES_ENABLE_BITMAP_TEXT
88 u32 textureHandle,
u32 texWidth,
u32 texHeight);
90 u32 texWidth,
u32 texHeight,
const std::string& chars,
91 u32 charWidth,
u32 charHeight);
96 const std::string&
text,
f32 fontSize,
f32 spacing);
101 uintptr_t pixelsPtr,
u32 pixelsLen);
Central resource management system.
Core type definitions and utilities for ESEngine.
Central manager for GPU resources.
u32 rm_createTexture(resource::ResourceManager &rm, u32 width, u32 height, uintptr_t pixelsPtr, u32 pixelsLen, i32 format, bool flipY, u32 content)
u32 rm_registerExternalTextureSized(resource::ResourceManager &rm, u32 glTextureId, u32 width, u32 height, u32 bytes, u32 content)
std::string rm_texturesAwaitingReupload(resource::ResourceManager &rm)
The textures the device is waiting for content for, as handle|content|path lines.
u32 rm_createTextureArray(resource::ResourceManager &rm, u32 width, u32 height, u32 layers, uintptr_t pixelsPtr, u32 pixelsLen, i32 format, i32 filterMode, i32 wrapMode, u32 content)
std::int32_t i32
Signed 32-bit integer.
std::string rm_meshesAwaitingRemat(resource::ResourceManager &rm)
Replayable meshes still owed their geometry, as comma-separated handle ids. No path: the engine never...
void rm_setTextureBudget(resource::ResourceManager &rm, u32 bytes)
bool rm_invalidateTexturePath(resource::ResourceManager &rm, const std::string &path)
void rm_releaseTexture(resource::ResourceManager &rm, u32 handleId)
u32 rm_getShaderRefCount(resource::ResourceManager &rm, u32 handleId)
void rm_setRetainedBudget(resource::ResourceManager &rm, u32 bytes)
u32 rm_registerExternalTexture(resource::ResourceManager &rm, u32 glTextureId, u32 width, u32 height, u32 content)
void rm_restoreTextureContent(resource::ResourceManager &rm, u32 handle)
void rm_releaseShader(resource::ResourceManager &rm, u32 handleId)
bool rm_supportsCompressedFormat(resource::ResourceManager &rm, i32 format)
u32 rm_getTextureRefCount(resource::ResourceManager &rm, u32 handleId)
u32 rm_getTextureGLId(resource::ResourceManager &rm, u32 handleId)
void rm_setTextureMetadata(resource::ResourceManager &rm, u32 handleId, f32 left, f32 right, f32 top, f32 bottom)
u32 rm_trimTextureCache(resource::ResourceManager &rm)
u32 rm_getTextureNativeId(resource::ResourceManager &rm, u32 handle)
void rm_registerTextureWithPath(resource::ResourceManager &rm, u32 handleId, const std::string &path)
void rm_forgoTextureContent(resource::ResourceManager &rm, u32 handle)
Gives up on an owed texture's content; it keeps blank storage.
std::uint32_t u32
Unsigned 32-bit integer.
u32 rm_acquireTextureByPath(resource::ResourceManager &rm, const std::string &path)
bool rm_adoptTextureContent(resource::ResourceManager &rm, u32 target, u32 source)
Moves a freshly loaded texture's pixels behind an owed handle.
u32 rm_createCompressedTexture(resource::ResourceManager &rm, u32 width, u32 height, i32 format, uintptr_t dataPtr, u32 dataLen, u32 mipLevels, u32 content)
u32 rm_createShader(resource::ResourceManager &rm, const std::string &vertSrc, const std::string &fragSrc)
void rm_updateTextureSubregion(resource::ResourceManager &rm, u32 handleId, u32 x, u32 y, u32 width, u32 height, uintptr_t pixelsPtr, u32 pixelsLen)
std::string rm_meshRealizations(resource::ResourceManager &rm)
Every live mesh as handle:realized.
u32 rm_createTextureEx(resource::ResourceManager &rm, u32 width, u32 height, uintptr_t pixelsPtr, u32 pixelsLen, i32 format, bool flipY, i32 filterMode, i32 wrapMode, u32 content)
float f32
32-bit floating point
u32 rm_wrapDeviceTexture(resource::ResourceManager &rm, u32 textureId, u32 width, u32 height)
A resource handle for a device texture another owner keeps (a render target's colour).