From 1baa13ff3b3884e326c2810ffe160e7d0d078c79 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Sun, 5 May 2019 18:27:09 +0100 Subject: [PATCH] Added VoxelBuffer::clear_channel_f() --- voxel_buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/voxel_buffer.h b/voxel_buffer.h index c168dc9..6dc546a 100644 --- a/voxel_buffer.h +++ b/voxel_buffer.h @@ -54,6 +54,7 @@ public: void create(int sx, int sy, int sz); void clear(); void clear_channel(unsigned int channel_index, int clear_value = 0); + _FORCE_INLINE_ void clear_channel_f(unsigned int channel_index, float clear_value = 0) { clear_channel(channel_index, iso_to_byte(clear_value)); } _FORCE_INLINE_ const Vector3i &get_size() const { return _size; }