From 392485aa454e871566a67afc61e11331f9d27397 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sat, 3 Dec 2011 08:40:32 +0100 Subject: inventorycube: use all three specified textures; also moved mesh creation / modification functions to mesh.cpp; in lua, inventorycube is now called minetest.inventorycube --- src/utility.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/utility.cpp') diff --git a/src/utility.cpp b/src/utility.cpp index 87c81cb2a..4e9f307d8 100644 --- a/src/utility.cpp +++ b/src/utility.cpp @@ -172,27 +172,6 @@ int myrand_range(int min, int max) return (myrand()%(max-min+1))+min; } -#ifndef SERVER -// Sets the color of all vertices in the mesh -void setMeshVerticesColor(scene::IMesh* mesh, video::SColor& color) -{ - if(mesh == NULL) - return; - - u16 mc = mesh->getMeshBufferCount(); - for(u16 j=0; jgetMeshBuffer(j); - video::S3DVertex *vertices = (video::S3DVertex*)buf->getVertices(); - u16 vc = buf->getVertexCount(); - for(u16 i=0; i