From 8286ddda96a5f2925d342d0ce115aa00ae5d94ec Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Sun, 28 Nov 2021 16:16:29 +0500 Subject: Added gamma correction --- src/Gal.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Gal.hpp') diff --git a/src/Gal.hpp b/src/Gal.hpp index 234e49a..8d7394a 100644 --- a/src/Gal.hpp +++ b/src/Gal.hpp @@ -158,6 +158,8 @@ namespace Gal { virtual void SetWrapping(Wrapping wrapping) = 0; + virtual void SetLinear(bool isLinear) = 0; + }; struct Texture { @@ -261,6 +263,7 @@ namespace Gal { template void Resize() { Resize(sizeof(T)); + *Get() = T{}; } virtual std::byte* GetDataPtr() = 0; -- cgit v1.2.3