aboutsummaryrefslogtreecommitdiff
path: root/src/utility.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-09-26 15:10:02 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-09-26 15:10:02 +0300
commit061d4b420206c67fb346d75fb6bcaf4aa8147ca8 (patch)
tree3f17c19e529baf3a6ae13479b7805fbe5cdf46ba /src/utility.h
parentb9e680d06cf56b7c8b41a6b5626a3b94304adf42 (diff)
parent2ecd53ce09d8f20a06b057c24924a010fa2eefde (diff)
downloadminetest-061d4b420206c67fb346d75fb6bcaf4aa8147ca8.tar.gz
minetest-061d4b420206c67fb346d75fb6bcaf4aa8147ca8.tar.bz2
minetest-061d4b420206c67fb346d75fb6bcaf4aa8147ca8.zip
Merge branch 'view_bobbing_and_vielded_tool'
Diffstat (limited to 'src/utility.h')
-rw-r--r--src/utility.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/utility.h b/src/utility.h
index ea7c11846..2fefd8667 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -553,6 +553,9 @@ private:
u32 *m_result;
};
+// Sets the color of all vertices in the mesh
+void setMeshVerticesColor(scene::IMesh* mesh, video::SColor& color);
+
// Calculates the borders of a "d-radius" cube
inline void getFacePositions(core::list<v3s16> &list, u16 d)
{
@@ -1765,8 +1768,8 @@ inline int myrand_range(int min, int max)
Miscellaneous functions
*/
-bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir, f32 range,
- f32 *distance_ptr=NULL);
+bool isBlockInSight(v3s16 blockpos_b, v3f camera_pos, v3f camera_dir,
+ f32 camera_fov, f32 range, f32 *distance_ptr=NULL);
/*
Queue with unique values with fast checking of value existence