Skip to content

Commit

Permalink
Resources: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Dec 1, 2013
1 parent 99ce12b commit 98f69b0
Show file tree
Hide file tree
Showing 4 changed files with 1,190 additions and 1,192 deletions.
2 changes: 1 addition & 1 deletion doomsday/client/include/gl/gl_model.h
Expand Up @@ -252,7 +252,7 @@ class Model
DetailLevels const &lods() const;

/// @todo Remove me.
int numVertices() const;
int vertexCount() const;

private:
DENG2_PRIVATE(d)
Expand Down
5 changes: 2 additions & 3 deletions doomsday/client/src/gl/gl_model.cpp
Expand Up @@ -25,7 +25,6 @@
#include "Texture"
#include "TextureManifest"
#include <de/Range>
#include <de/memory.h>
#include <QtAlgorithms>

using namespace de;
Expand Down Expand Up @@ -181,15 +180,15 @@ Model::DetailLevel &Model::lod(int level) const
{
return *_lods.at(level);
}
throw MissingDetailLevelError("Model::lod", "Invalid detail leve " + String::number(level) + " Valid range is " + Rangei(0, _lods.count()).asText());
throw MissingDetailLevelError("Model::lod", "Invalid detail level " + String::number(level) + " Valid range is " + Rangei(0, _lods.count()).asText());
}

Model::DetailLevels const &Model::lods() const
{
return _lods;
}

int Model::numVertices() const
int Model::vertexCount() const
{
return _numVertices;
}
2 changes: 1 addition & 1 deletion doomsday/client/src/render/rend_model.cpp
Expand Up @@ -881,7 +881,7 @@ static void Mod_RenderSubModel(uint number, rendmodelparams_t const *parm)
}

// Determine the total number of vertices we have.
numVerts = mdl->numVertices();
numVerts = mdl->vertexCount();

// Ensure our vertex render buffers can accommodate this.
if(!Mod_ExpandVertexBuffer(numVerts))
Expand Down

0 comments on commit 98f69b0

Please sign in to comment.