summaryrefslogtreecommitdiff
path: root/src/utility.cpp
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2011-12-03 08:40:32 +0100
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 11:47:37 +0200
commit392485aa454e871566a67afc61e11331f9d27397 (patch)
tree7c2a0b971feaa6cad6fafff9569d57d8bda53803 /src/utility.cpp
parent275a348b75ae710f5cfdb71595ea6e95ecdbcd63 (diff)
downloadminetest-392485aa454e871566a67afc61e11331f9d27397.tar.gz
minetest-392485aa454e871566a67afc61e11331f9d27397.tar.bz2
minetest-392485aa454e871566a67afc61e11331f9d27397.zip
inventorycube: use all three specified textures; also moved mesh creation / modification functions to mesh.cpp; in lua, inventorycube is now called minetest.inventorycube
Diffstat (limited to 'src/utility.cpp')
-rw-r--r--src/utility.cpp21
1 files changed, 0 insertions, 21 deletions
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; j<mc; j++)
- {
- scene::IMeshBuffer *buf = mesh->getMeshBuffer(j);
- video::S3DVertex *vertices = (video::S3DVertex*)buf->getVertices();
- u16 vc = buf->getVertexCount();
- for(u16 i=0; i<vc; i++)
- {
- vertices[i].Color = color;
- }
- }
-}
-#endif
-
/*
blockpos: position of block in block coordinates
camera_pos: position of camera in nodes