Kaydet (Commit) 8ca055f5 authored tarafından David Tardon's avatar David Tardon

rename to avoid further misunderstandings

Change-Id: Ibcfae1b3ec118d74921312a80eb56c97c623f4a9
üst 9d902e26
......@@ -111,7 +111,7 @@ static std::vector<int> uploadPrimitives(const Primitives_t& primitives)
{
int size = 0;
for (const Primitive& primitive: primitives)
size += primitive.getVerticesSize();
size += primitive.getVerticesByteSize();
CHECK_GL_ERROR();
glBufferData(GL_ARRAY_BUFFER, size, nullptr, GL_STATIC_DRAW);
......@@ -1998,7 +1998,7 @@ void GlitterTransition::prepareTransition( sal_Int32 glLeavingSlideTex, sal_Int3
// Upload the center of each hexagon.
const Primitive& primitive = getScene().getLeavingSlide()[0];
int nbVertices = primitive.getVerticesSize() / sizeof(Vertex);
int nbVertices = primitive.getVerticesByteSize() / sizeof(Vertex);
std::vector<ThreeFloats> vertices;
for (int i = 2; i < nbVertices; i += 18) {
const glm::vec3& center = primitive.getVertex(i);
......
......@@ -340,7 +340,7 @@ public:
@return
the size in bytes of the Vertices data
*/
int getVerticesSize() const {return Vertices.size() * sizeof(Vertex);}
int getVerticesByteSize() const {return Vertices.size() * sizeof(Vertex);}
/** copies all vertices to the C array passed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment