From 80d9feb5eab692162c7deeae53a044d8a43859aa Mon Sep 17 00:00:00 2001 From: David Williams Date: Sun, 1 Jun 2014 21:54:31 +0200 Subject: [PATCH] Made functions inline as they are defined in headers. --- .../include/PolyVoxCore/MarchingCubesSurfaceExtractor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.h b/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.h index 7b39828e..6e115319 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.h +++ b/library/PolyVoxCore/include/PolyVoxCore/MarchingCubesSurfaceExtractor.h @@ -57,7 +57,7 @@ namespace PolyVox }; /// Decodes a position from a MarchingCubesVertex - Vector3DFloat decode(const Vector3DUint16& position) + inline Vector3DFloat decode(const Vector3DUint16& position) { Vector3DFloat result(position.getX(), position.getY(), position.getZ()); result *= (1.0f / 256.0f); // Division is compile-time constant @@ -65,7 +65,7 @@ namespace PolyVox } /// Decodes a normal from a MarchingCubesVertex - Vector3DFloat decode(const uint16_t normal) + inline Vector3DFloat decode(const uint16_t normal) { // Get normal components in the range 0 to 31 uint16_t x = (normal >> 10) & 0x1F;