CP_SPACE_DEBUG_DRAW_CONSTRAINTS);
mDebugDrawOptions.colorForShape = DebugDrawColorForShapeImpl;
mDebugDrawOptions.shapeOutlineColor = cpSpaceDebugColor{0.0f, 1.0f, 1.0f, 0.9f};
+ mDebugDrawOptions.constraintColor = cpSpaceDebugColor{0.5f, 0.5f, 0.5f, 0.9f};
mDebugDrawOptions.collisionPointColor = cpSpaceDebugColor{1.0f, 0.0f, 0.0f, 1.0f};
mDebugDrawOptions.data = this;
}
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, mIndexBufferId);
- glBufferData(GL_ELEMENT_ARRAY_BUFFER, mIndices.size() * sizeof(uint16_t), &mIndices[0], GL_STATIC_DRAW);
+ glBufferData(GL_ELEMENT_ARRAY_BUFFER, GLsizeiptr(mIndices.size() * sizeof(uint16_t)), &mIndices[0], GL_STATIC_DRAW);
glBindBuffer(GL_ARRAY_BUFFER, mVertexBufferId);
- glBufferData(GL_ARRAY_BUFFER, mVertices.size() * sizeof(Vertex), &mVertices[0], GL_STATIC_DRAW);
+ glBufferData(GL_ARRAY_BUFFER, GLsizeiptr(mVertices.size() * sizeof(Vertex)), &mVertices[0], GL_STATIC_DRAW);
GLint stride = 52; // 4*(2 + 2 + 1 + 4 + 4) = 4*13=52
glVertexAttribPointer(mPositionLocation, 2, GL_FLOAT, GL_FALSE, stride, 0);
return Colors[val & 0x7];
}
}
-
- return cpSpaceDebugColor{1.0f, 1.0f, 1.0f, 1.0f};
}
} // namespace Dali::Toolkit::Physics::Internal