From 14aa604389110f5da25e0c06ca4c6a753c497248 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 15 Dec 2023 01:46:22 +0000 Subject: Basic support for saving integer position buffer --- gfx/models/texture.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gfx/models/texture.cpp') diff --git a/gfx/models/texture.cpp b/gfx/models/texture.cpp index 1685d34..35f8d35 100644 --- a/gfx/models/texture.cpp +++ b/gfx/models/texture.cpp @@ -103,6 +103,12 @@ Texture::save(const glTexture & texture, const char * path) save(texture, GL_BGR, GL_UNSIGNED_BYTE, 3, path, 2); } +void +Texture::savePosition(const glTexture & texture, const char * path) +{ + save(texture, GL_BGR_INTEGER, GL_UNSIGNED_BYTE, 3, path, 2); +} + void Texture::saveDepth(const glTexture & texture, const char * path) { -- cgit v1.2.3