Scaled vertices to always be integers.

This commit is contained in:
David Williams
2007-08-31 21:10:24 +00:00
parent 5f836e0c31
commit c1286a7847
5 changed files with 90 additions and 61 deletions

View File

@ -23,6 +23,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include "OgrePrerequisites.h"
#include "OgreVector3.h"
#include "IntegralVector3.h"
namespace Ogre
{
@ -31,7 +32,7 @@ namespace Ogre
class SurfaceVertex
{
public:
Vector3 position;
UIntVector3 position;
Vector3 normal;
float alpha;
@ -39,9 +40,9 @@ namespace Ogre
SurfaceVertex();
SurfaceVertex(Vector3 positionToSet);
SurfaceVertex(UIntVector3 positionToSet);
SurfaceVertex(Vector3 positionToSet, Vector3 normalToSet);
SurfaceVertex(UIntVector3 positionToSet, Vector3 normalToSet);
bool operator==(const SurfaceVertex& rhs) const;