LCOV - code coverage report
Current view: top level - src/util - directiontables.cpp (source / functions) Hit Total Coverage
Test: report Lines: 6 6 100.0 %
Date: 2015-07-11 18:23:49 Functions: 2 2 100.0 %

          Line data    Source code
       1             : /*
       2             : Minetest
       3             : Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
       4             : 
       5             : This program is free software; you can redistribute it and/or modify
       6             : it under the terms of the GNU Lesser General Public License as published by
       7             : the Free Software Foundation; either version 2.1 of the License, or
       8             : (at your option) any later version.
       9             : 
      10             : This program is distributed in the hope that it will be useful,
      11             : but WITHOUT ANY WARRANTY; without even the implied warranty of
      12             : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      13             : GNU Lesser General Public License for more details.
      14             : 
      15             : You should have received a copy of the GNU Lesser General Public License along
      16             : with this program; if not, write to the Free Software Foundation, Inc.,
      17             : 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
      18             : */
      19             : 
      20             : #include "directiontables.h"
      21             : 
      22           1 : const v3s16 g_6dirs[6] =
      23             : {
      24             :         // +right, +top, +back
      25             :         v3s16( 0, 0, 1), // back
      26             :         v3s16( 0, 1, 0), // top
      27             :         v3s16( 1, 0, 0), // right
      28             :         v3s16( 0, 0,-1), // front
      29             :         v3s16( 0,-1, 0), // bottom
      30             :         v3s16(-1, 0, 0) // left
      31           1 : };
      32             : 
      33           1 : const v3s16 g_26dirs[26] =
      34             : {
      35             :         // +right, +top, +back
      36             :         v3s16( 0, 0, 1), // back
      37             :         v3s16( 0, 1, 0), // top
      38             :         v3s16( 1, 0, 0), // right
      39             :         v3s16( 0, 0,-1), // front
      40             :         v3s16( 0,-1, 0), // bottom
      41             :         v3s16(-1, 0, 0), // left
      42             :         // 6
      43             :         v3s16(-1, 1, 0), // top left
      44             :         v3s16( 1, 1, 0), // top right
      45             :         v3s16( 0, 1, 1), // top back
      46             :         v3s16( 0, 1,-1), // top front
      47             :         v3s16(-1, 0, 1), // back left
      48             :         v3s16( 1, 0, 1), // back right
      49             :         v3s16(-1, 0,-1), // front left
      50             :         v3s16( 1, 0,-1), // front right
      51             :         v3s16(-1,-1, 0), // bottom left
      52             :         v3s16( 1,-1, 0), // bottom right
      53             :         v3s16( 0,-1, 1), // bottom back
      54             :         v3s16( 0,-1,-1), // bottom front
      55             :         // 18
      56             :         v3s16(-1, 1, 1), // top back-left
      57             :         v3s16( 1, 1, 1), // top back-right
      58             :         v3s16(-1, 1,-1), // top front-left
      59             :         v3s16( 1, 1,-1), // top front-right
      60             :         v3s16(-1,-1, 1), // bottom back-left
      61             :         v3s16( 1,-1, 1), // bottom back-right
      62             :         v3s16(-1,-1,-1), // bottom front-left
      63             :         v3s16( 1,-1,-1), // bottom front-right
      64             :         // 26
      65           1 : };
      66             : 
      67           1 : const v3s16 g_27dirs[27] =
      68             : {
      69             :         // +right, +top, +back
      70             :         v3s16( 0, 0, 1), // back
      71             :         v3s16( 0, 1, 0), // top
      72             :         v3s16( 1, 0, 0), // right
      73             :         v3s16( 0, 0,-1), // front
      74             :         v3s16( 0,-1, 0), // bottom
      75             :         v3s16(-1, 0, 0), // left
      76             :         // 6
      77             :         v3s16(-1, 1, 0), // top left
      78             :         v3s16( 1, 1, 0), // top right
      79             :         v3s16( 0, 1, 1), // top back
      80             :         v3s16( 0, 1,-1), // top front
      81             :         v3s16(-1, 0, 1), // back left
      82             :         v3s16( 1, 0, 1), // back right
      83             :         v3s16(-1, 0,-1), // front left
      84             :         v3s16( 1, 0,-1), // front right
      85             :         v3s16(-1,-1, 0), // bottom left
      86             :         v3s16( 1,-1, 0), // bottom right
      87             :         v3s16( 0,-1, 1), // bottom back
      88             :         v3s16( 0,-1,-1), // bottom front
      89             :         // 18
      90             :         v3s16(-1, 1, 1), // top back-left
      91             :         v3s16( 1, 1, 1), // top back-right
      92             :         v3s16(-1, 1,-1), // top front-left
      93             :         v3s16( 1, 1,-1), // top front-right
      94             :         v3s16(-1,-1, 1), // bottom back-left
      95             :         v3s16( 1,-1, 1), // bottom back-right
      96             :         v3s16(-1,-1,-1), // bottom front-left
      97             :         v3s16( 1,-1,-1), // bottom front-right
      98             :         // 26
      99             :         v3s16(0,0,0),
     100           4 : };
     101             : 

Generated by: LCOV version 1.11