ScummVM API documentation
Tetraedge::TeMesh Class Referenceabstract
Inheritance diagram for Tetraedge::TeMesh:
Tetraedge::Te3DObject2 Tetraedge::TeI3DObject2 Tetraedge::TeObject

Public Types

enum  Mode {
  MeshMode_None = 0, MeshMode_Points, MeshMode_Lines, MeshMode_LineLoop,
  MeshMode_LineStrip, MeshMode_Triangles, MeshMode_TriangleStrip, MeshMode_TriangleFan
}
 

Public Member Functions

void attachMaterial (uint idx, const TeMaterial &material)
 
void boundingBox (TeVector3f32 &boxmin, TeVector3f32 boxmax)
 
void checkArrays ()
 
void clearColors ()
 
TeColor color (uint idx) const
 
void copy (const TeMesh &other)
 
void create ()
 
void defaultMaterial (const TeIntrusivePtr< Te3DTexture > &texture)
 
void destroy ()
 
void facesPerMaterial (uint idx, unsigned short value)
 
unsigned short facesPerMaterial (uint idx) const
 
void forceMatrix (const TeMatrix4x4 &matrix)
 
byte getFaceMaterial (uint idx)
 
virtual uint32 getTexEnvMode () const =0
 
virtual TeMesh::Mode getMode () const =0
 
virtual void setMode (enum Mode mode)=0
 
bool hasAlpha (uint idx)
 
bool hasColor () const
 
bool hasUvs () const
 
unsigned short index (uint num) const
 
TeMaterialmaterial (uint idx)
 
const TeMaterialmaterial (uint idx) const
 
void materialIndex (uint idx, byte val)
 
byte materialIndex (uint idx) const
 
void matrixIndex (uint num, unsigned short val)
 
unsigned short matrixIndex (uint num) const
 
TeVector3f32 normal (uint idx) const
 
void optimizeVerticies ()
 
void resizeUpdatedTables (uint newSize)
 
void setColor (const TeColor &col) override
 
void setColor (uint idx, const TeColor &col)
 
void setConf (uint vertexCount, uint indexCount, enum Mode mode, uint materialCount, uint materialIndexCount)
 
void setIndex (uint idx, uint val)
 
void setNormal (uint idx, const TeVector3f32 &val)
 
void setTextureUV (uint idx, const TeVector2f32 &val)
 
void setVertex (uint idx, const TeVector3f32 &val)
 
void sortFaces ()
 
void update (const Common::Array< TeMatrix4x4 > *matricies1, const Common::Array< TeMatrix4x4 > *matricies2)
 
void update (TeIntrusivePtr< TeModelVertexAnimation > vertexanim)
 
void updateTo (const Common::Array< TeMatrix4x4 > *matricies1, const Common::Array< TeMatrix4x4 > *matricies2, Common::Array< TeVector3f32 > &verts, Common::Array< TeVector3f32 > &normals)
 
TeVector2f32 textureUV (uint idx) const
 
TeVector3f32 vertex (uint idx) const
 
uint numIndexes () const
 
uint numVerticies () const
 
bool shouldDrawMaybe () const
 
void setShouldDraw (bool val)
 
virtual void setglTexEnvBlend ()=0
 
void setHasAlpha (bool val)
 
Common::Array< TeMaterial > & materials ()
 
void setUpdatedVertex (uint idx, const TeVector3f32 &val)
 
void setUpdatedNormal (uint idx, const TeVector3f32 &val)
 
const TeVector3f32preUpdatedVertex (uint idx) const
 
const TeVector3f32preUpdatedNormal (uint idx) const
 
- Public Member Functions inherited from Tetraedge::Te3DObject2
virtual void addChild (Te3DObject2 *newChild)
 
virtual void addChildBefore (Te3DObject2 *newChild, const Te3DObject2 *ref)
 
virtual Te3DObject2child (int offset)
 
int childCount ()
 
int childIndex (Te3DObject2 *childToFind) const
 
const Common::Array< Te3DObject2 * > & childList () const
 
bool childListChanged () const
 
const TeColorcolor () const
 
bool colorInheritance () const
 
virtual void draw ()
 
const Common::Stringname () const
 
virtual bool onParentWorldColorChanged ()
 
bool onParentWorldTransformationMatrixChanged ()
 
bool onWorldVisibleChangedSlot ()
 
TeSignal0ParamonPositionChanged ()
 
TeSignal0ParamonSizeChanged ()
 
TeSignal0ParamonWorldColorChanged ()
 
TeSignal0ParamonWorldTransformationMatrixChanged ()
 
TeSignal0ParamonWorldVisibleChanged ()
 
Te3DObject2parent ()
 
virtual TeVector3f32 position ()
 
virtual void removeChild (Te3DObject2 *toRemove)
 
virtual void removeChildren ()
 
void rotate (const TeQuaternion &rot)
 
const TeQuaternionrotation ()
 
const TeVector3f32scale () const
 
virtual void setColorInheritance (bool val)
 
virtual bool setName (const Common::String &newName)
 
virtual void setParent (Te3DObject2 *newparent)
 
virtual void setPosition (const TeVector3f32 &pos)
 
virtual void setPositionFast (const TeVector3f32 &pos)
 
virtual void setRotation (const TeQuaternion &rot)
 
virtual void setScale (const TeVector3f32 &newScale)
 
virtual void setSize (const TeVector3f32 &newSize)
 
void setVisible (bool visible)
 
virtual void setZPosition (float zpos)
 
virtual TeVector3f32 size ()
 
TeMatrix4x4 transformationMatrix ()
 
virtual void translate (const TeVector3f32 &vec)
 
virtual void updateZ ()
 
virtual bool visible () const
 
TeColor worldColor ()
 
virtual TeVector3f32 worldPosition ()
 
TeQuaternion worldRotation ()
 
TeVector3f32 worldScale ()
 
virtual TeMatrix4x4 worldTransformationMatrix ()
 
virtual bool worldVisible ()
 
virtual float xSize ()
 
virtual float ySize ()
 
virtual float zSize ()
 
- Public Member Functions inherited from Tetraedge::TeObject
void deleteLater ()
 

Static Public Member Functions

static TeMeshmakeInstance ()
 
- Static Public Member Functions inherited from Tetraedge::Te3DObject2
static void deserialize (Common::ReadStream &stream, Te3DObject2 &dest, bool includesName=true)
 
static void serialize (Common::WriteStream &stream, Te3DObject2 &src)
 
static bool loadAndCheckFourCC (Common::ReadStream &stream, const char *str)
 
static Common::String deserializeString (Common::ReadStream &stream)
 
static void deserializeVectorArray (Common::ReadStream &stream, Common::Array< TeVector3f32 > &dest)
 
static void deserializeUintArray (Common::ReadStream &stream, Common::Array< uint > &dest)
 
- Static Public Member Functions inherited from Tetraedge::TeObject
static void deleteLaterStatic (TeObject *obj)
 
static void deleteNow ()
 
static void cleanup ()
 

Protected Attributes

Common::Array< unsigned char > _materialIndexes
 
Common::Array< TeVector3f32_verticies
 
Common::Array< TeVector3f32_normals
 
Common::Array< TeVector3f32_updatedVerticies
 
Common::Array< TeVector3f32_updatedNormals
 
Common::Array< TeVector2f32_uvs
 
Common::Array< unsigned short > _indexes
 
Common::Array< unsigned short > _faceCounts
 
Common::Array< unsigned short > _matricies
 
Common::Array< TeColor_colors
 
Common::Array< TeMaterial_materials
 
bool _matrixForced
 
TeMatrix4x4 _forcedMatrix
 
bool _hasAlpha
 
uint _initialMaterialIndexCount
 
bool _drawWires
 
bool _shouldDraw
 
- Protected Attributes inherited from Tetraedge::Te3DObject2
TeVector3f32 _size
 
TeVector3f32 _position
 
TeQuaternion _rotation
 
TeVector3f32 _scale
 

The documentation for this class was generated from the following file: