From c3737fff1be704e14a2bada69bbf8a6709c5f670 Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Wed, 17 Jul 2024 23:12:42 +1000 Subject: wip shader layouts for common stuff --- src/new_render/render.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/new_render/render.h') diff --git a/src/new_render/render.h b/src/new_render/render.h index fa05fec..de84eda 100644 --- a/src/new_render/render.h +++ b/src/new_render/render.h @@ -41,7 +41,9 @@ PUB void Render_RenderEntities(RenderEnt* entities, size_t entity_count); // --- Resources -PUB TextureHandle TextureUpload(); +PUB TextureData TextureDataLoad(const char* path, bool invert_y); +PUB void TextureUpload(TextureHandle handle, size_t n_bytes, const void* data); +PUB TextureHandle TextureLoadFromFile(const char* path); PUB ModelHandle ModelLoad(const char* debug_name, const char* filepath); // --- Rendering Data -- cgit v1.2.3-70-g09d2