MercuryPoly.h

Go to the documentation of this file.
00001 #ifndef MERCURYPOLY_H
00002 #define MERCURYPOLY_H
00003 
00004 #include "MercuryVertex.h"
00005 #include "MercuryVector.h"
00006 
00008 class MercuryPoly
00009 {
00010 public:
00017 /*
00018     inline float GetX(unsigned int i) const { return m_verts[i]->GetX(); }
00019     inline float GetY(unsigned int i) const { return m_verts[i]->GetY(); }
00020     inline float GetZ(unsigned int i) const { return m_verts[i]->GetZ(); }
00021     inline const MercuryVertWrapper* GetVertex(unsigned int i) const { return m_verts[i]; }
00022     void AddVert(MercuryVertWrapper* vert);
00023     void CalculateNormal();
00024     inline void GetVertex(unsigned int i, MercuryVertWrapper & vert) const { vert = *m_verts[i]; }
00025     inline const MercuryNormal& GetNormal(unsigned int i) const { return m_verts[i]->GetNormal(); }
00026     inline const MercuryNormal& GetSurfaceNormal() const { return m_normal; }
00027     inline unsigned int VerticeCount() const { return m_verts.size(); }
00028     */
00029 private:
00030 //  MVector<MercuryVertPacked*> m_verts;
00031     friend class MercuryMesh;
00032     MercuryNormal m_normal;
00033 };
00034 
00035 #endif
00036 
00037 /* 
00038  * Copyright (c) 2006 Joshua Allen
00039  * All rights reserved.
00040  *
00041  * Redistribution and use in source and binary forms, with or
00042  * without modification, are permitted provided that the following
00043  * conditions are met:
00044  *  -   Redistributions of source code must retain the above
00045  *      copyright notice, this list of conditions and the following disclaimer.
00046  *  -   Redistributions in binary form must reproduce the above copyright
00047  *      notice, this list of conditions and the following disclaimer in
00048  *      the documentation and/or other materials provided with the distribution.
00049  *  -   Neither the name of the Mercury Engine nor the names of its
00050  *      contributors may be used to endorse or promote products derived from
00051  *      this software without specific prior written permission.
00052  *
00053  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00054  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00055  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00056  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
00057  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00058  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00059  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00060  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00061  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
00062  * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00063  */
00064 

Hosted by SourceForge.net Logo