From b0b61c117c6e2bc7693802f005a2888e7cc073c2 Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Wed, 28 Dec 2022 11:23:00 -0300 Subject: refa Use QOI image format for textures --- test/src/main.rb | 2 +- test/textures/color_texture.png | Bin 3594 -> 0 bytes test/textures/color_texture.qoi | Bin 0 -> 16062 bytes 3 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 test/textures/color_texture.png create mode 100644 test/textures/color_texture.qoi (limited to 'test') diff --git a/test/src/main.rb b/test/src/main.rb index 53e92a0..33d0b1d 100644 --- a/test/src/main.rb +++ b/test/src/main.rb @@ -23,7 +23,7 @@ def config() end def init() - texture = CandyGear::Texture.from_image("textures/color_texture.png"); + texture = CandyGear::Texture.from_image("textures/color_texture.qoi"); mesh = CandyGear::Mesh.new("meshes/cube.cgmesh"); $color = CandyGear::Vector3D.new(0.8, 0.2, 0.2); diff --git a/test/textures/color_texture.png b/test/textures/color_texture.png deleted file mode 100644 index 2c02811..0000000 Binary files a/test/textures/color_texture.png and /dev/null differ diff --git a/test/textures/color_texture.qoi b/test/textures/color_texture.qoi new file mode 100644 index 0000000..9fa7256 Binary files /dev/null and b/test/textures/color_texture.qoi differ -- cgit v1.2.3