Skip to content

Commit

Permalink
#5584: Remove unused member from StaticModelSurface, expand docs a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Jan 16, 2022
1 parent 6302eb3 commit a11dd8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion radiantcore/model/StaticModelSurface.cpp
Expand Up @@ -34,7 +34,6 @@ StaticModelSurface::StaticModelSurface(const StaticModelSurface& other) :
_defaultMaterial(other._defaultMaterial),
_vertices(other._vertices),
_indices(other._indices),
_nIndices(other._nIndices),
_localAABB(other._localAABB),
_dlRegular(0),
_dlProgramVcol(0),
Expand Down
12 changes: 4 additions & 8 deletions radiantcore/model/StaticModelSurface.h
Expand Up @@ -20,13 +20,13 @@ namespace model

/**
* \brief
* Renderable class containing a series of polygons textured with the same
* material.
* A static surface contains a series of triangles textured with the same
* material. The number of vertices and indices of a surface never changes.
*
* StaticModelSurface objects are composited into a StaticModel object to
* create a renderable static mesh.
*/
class StaticModelSurface :
class StaticModelSurface final :
public IIndexedModelSurface,
public OpenGLRenderable
{
Expand All @@ -47,10 +47,6 @@ class StaticModelSurface :
typedef std::vector<unsigned int> Indices;
Indices _indices;

// Keep track of the number of indices to iterate over, since vector::size()
// may not be fast
unsigned int _nIndices;

// The AABB containing this surface, in local object space.
AABB _localAABB;

Expand All @@ -71,7 +67,7 @@ class StaticModelSurface :
// Move-construct this static model surface from the given vertex- and index array
StaticModelSurface(std::vector<ArbitraryMeshVertex>&& vertices, std::vector<unsigned int>&& indices);

// Copy-constructor.
// Copy-constructor. All vertices and indices will be copied from 'other'.
StaticModelSurface(const StaticModelSurface& other);

~StaticModelSurface();
Expand Down

0 comments on commit a11dd8e

Please sign in to comment.