From 7b5e75bebb1af2259dab1fab87c01226e1250ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Tue, 18 Jun 2019 22:39:11 +0200 Subject: [PATCH] Fix const warning --- small3dlib.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/small3dlib.h b/small3dlib.h index 518bdd1..aa60087 100644 --- a/small3dlib.h +++ b/small3dlib.h @@ -440,9 +440,9 @@ typedef struct } S3L_Model3D; ///< Represents a 3D model. void S3L_initModel3D( - S3L_Unit *vertices, + const S3L_Unit *vertices, S3L_Unit vertexCount, - S3L_Index *triangles, + const S3L_Index *triangles, S3L_Index triangleCount, S3L_Model3D *model); @@ -1462,9 +1462,9 @@ void S3L_initPixelInfo(S3L_PixelInfo *p) // TODO: maybe non-pointer for p } void S3L_initModel3D( - S3L_Unit *vertices, + const S3L_Unit *vertices, S3L_Unit vertexCount, - S3L_Index *triangles, + const S3L_Index *triangles, S3L_Index triangleCount, S3L_Model3D *model) {