diff options
author | quou <quou@disroot.org> | 2024-12-27 11:34:30 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-27 11:34:30 +1100 |
commit | 5f9100b935a27bbb6d5ac8ab2050b19ba2894087 (patch) | |
tree | 8f5527be4668dcf6541d2f6ad0cc7666b15d5b11 /video.hpp | |
parent | edc84213fadc9bbd30030a57600550bde562b24e (diff) |
expose the create texture function
Diffstat (limited to 'video.hpp')
-rw-r--r-- | video.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |