[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/libs/kgllib/extras/kgllib
From: Rivo Laks <rivolaks () hot ! ee>
Date: 2008-08-16 11:47:27
Message-ID: 1218887247.177660.20804.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 847814 by rivol:
Add vertexCount() and indexCount() methods
M +10 -0 modelloader.cpp
M +3 -0 modelloader.h
--- trunk/playground/libs/kgllib/extras/kgllib/modelloader.cpp #847813:847814
@@ -133,6 +133,16 @@
return mValid;
}
+int ModelLoader::vertexCount() const
+{
+ return mVertices.count();
+}
+
+int ModelLoader::indexCount() const
+{
+ return mIndices.count();
+}
+
Batch* ModelLoader::createBatch()
{
if (!isValid()) {
--- trunk/playground/libs/kgllib/extras/kgllib/modelloader.h #847813:847814
@@ -53,6 +53,9 @@
void scaleModel(float scale);
void translateModel(const Eigen::Vector3f& trans);
+ int vertexCount() const;
+ int indexCount() const;
+
protected:
bool loadFromObj(const QString& filename);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic