From 5f9100b935a27bbb6d5ac8ab2050b19ba2894087 Mon Sep 17 00:00:00 2001 From: quou Date: Fri, 27 Dec 2024 11:34:30 +1100 Subject: expose the create texture function --- video.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'video.hpp') diff --git a/video.hpp b/video.hpp index 0363a9d..453423b 100644 --- a/video.hpp +++ b/video.hpp @@ -295,6 +295,13 @@ struct Device { Context& acquire(); Context& get_ctx(); + + Texture_Id create_texture( + Texture_Format fmt, + int w, + int h, + Buffer_Id init + ); Texture_Id get_backbuffer(); Texture& get_texture(Texture_Id id); void destroy_texture(Texture_Id id); -- cgit v1.2.3-54-g00ecf