59class GlsGloFileAttribute;
64 GLS_TRIMESH_FIRST_VALUE = GLS_LAST_INITIALIZER + 1,
65 GLS_TRIMESH_USE_DISPLAY_LIST,
86 unsigned char color[ 4 ];
104 void DrawSolidMesh(
unsigned int faceOffset,
unsigned int faceCount,
bool textureObject,
bool gouraudShading,
bool perVertexLighting );
111 DISTI_DEPRECATED(
"This identifier is forbidden by the C++ standard. Use BaseClass instead." )
114 friend class GLTriMeshEditor;
178 GLS_EXPORT void SetFace(
unsigned int face,
int a,
int b,
int c,
int tindex,
unsigned int materialIndex = 0 );
278 unsigned int _nFaces;
289 bool _textureChangesDirty;
295 void RecalculateTextureChanges();
305 bool FirstHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
314 bool BestHit(
const Vector& point,
const Vector& directionVector,
Vector* collisionPoint );
323 void CopyGeometryInternal(
GLTriMesh* src );
324 void CopyPropertiesInternal(
GLTriMesh* src );
332 unsigned int* _numFaces;
Definition: disti_metadata.h:87
Definition: callback_caller_base.h:56
virtual void PreDraw(const OpenGLMatrices ¤t, Culler &culler)
Definition: disti_metadata.h:220
Definition: gltrimesh.h:330
virtual std::istream & ReadValue(std::istream &) override
DistiAttributeMeshFaceArray(CallbackMethodCallerBase *callback, const AttributeName &name, GLMeshFace **attribPtr, unsigned int *numFaces, bool inRuntimeMode)
virtual bool OkToWrite() const override
virtual std::ostream & WriteValue(std::ostream &) override
Definition: dynamic_array.h:79
The Polygon class. Implements Polygons.
Definition: glpolygon.h:56
The glTriMesh class. Implements Triangle Meshes.
Definition: gltrimesh.h:95
virtual DisplayObject * CloneObject(bool generateNames=false) override
virtual void DrawGeometry()
void VaSetFaces(unsigned int numFaces,...)
virtual bool UseDisplayList()
virtual void SetAvailableAttributes(unsigned int value) override
void SetFaces(unsigned int nFaces, GLMeshFace *faces)
virtual void GetCppInterfaceDescriptionFree(InterfaceListType *array) override
virtual bool SetupTexture(const int textureIndex)
virtual void SetValue(int spec, va_list &args) override
int TextureIndex() override
void SetVerticesAndFaces(unsigned int nVertices, const GLMeshVertex *vertices, unsigned int nFaces, const GLMeshFace *faces)
DynamicArray< int > & MaterialIndices() override
GLTriMesh(unsigned int nVertices, Vertex *vertices, Vertex &location)
void AssignPropertiesFromGroup(DisplayObject *src)
static DisplayObject * CreateInstance()
GlsDisplayList _displayList
Definition: gltrimesh.h:120
unsigned int NumberOfFaces()
Definition: gltrimesh.h:161
virtual InterfaceListType * GetCppInterfaceDescription(InterfaceListType *addToThisList=NULL) override
GLTriMesh(unsigned int nVertices, Vertex *vertices)
virtual bool Hit(float x, float y, float z, float scale, const Vector &directionVector, Vector *collisionPoint) override
virtual void CopyProperties(DisplayObject *src) override
virtual void Draw() override
virtual void UseDisplayList(const bool &flag)
GLMeshFace * Faces()
Definition: gltrimesh.h:143
int MaterialIndex() override
void DrawSolidMesh(unsigned int faceOffset, unsigned int faceCount, bool textureObject, bool gouraudShading, bool perVertexLighting)
GLTriMesh(const GLTriMesh &that, const bool generateNames)
void InvalidateGeometry()
Definition: gltrimesh.h:248
virtual void CopyGeometry(DisplayObject *src) override
void SetFace(unsigned int face, int a, int b, int c, int tindex, unsigned int materialIndex=0)
void ReplaceMaterial(unsigned int oldIndex, unsigned int newIndex)
Definition: gls_display_list.h:51
void Invalidate()
Definition: gls_display_list.h:85
Definition: gls_glo_file.h:1243
Definition: gls_index_array.h:54
Class to contain current OpenGL view, projection and draw matrices.
Definition: util.h:544
The disti::DisplayObject class and global enumerations.
The disti::DynamicArray class. A templated array of objects capable of dynamically growing.
The disti::GLPolygon class. Implements Polygons.
Macros and helper code to determine what subset of C++11/14/17 is available.
#define DISTI_SPECIAL_MEM_FUN_DELETE
Macro to wrap function deletion, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:235
#define DISTI_DEPRECATED(msg)
Defines whether this compiler supports the C++14 deprecated attribute.
Definition: gls_cpp_lang_support.h:457
#define DISTI_METHOD_OVERRIDE
Macro to wrap the override keyword, removed on compilers that don't support it.
Definition: gls_cpp_lang_support.h:214
The disti::GlsDisplayList class.
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
The disti::GlsIndexArray class, for managing index buffers.
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
Structure for holding mesh vertex indices.
Definition: gltrimesh.h:73
int b
Vertex indices of the face.
Definition: gltrimesh.h:75
int c
Vertex indices of the face.
Definition: gltrimesh.h:76
int texture
Texture index of face.
Definition: gltrimesh.h:77
int a
Vertex indices of the face.
Definition: gltrimesh.h:74
unsigned int material
Material index of face.
Definition: gltrimesh.h:78
Definition: gltrimesh.h:84