19 m_vertices.append(
start);
20 m_vertices.append(
end);
21 m_normals.append(normal);
27 const int size = m_normals.count();
30 float *
data =
reinterpret_cast<float *
>(
output.data());
32 for (
int i = 0;
i <
size; ++
i) {
QCollisionDebugMeshBuilder()
void addLine(const QVector3D &start, const QVector3D &end, const QVector3D &normal=QVector3D(0, 0, 1))
QByteArray generateVertexArray()
The QVector3D class represents a vector or vertex in 3D space.
constexpr float y() const noexcept
Returns the y coordinate of this point.
constexpr float x() const noexcept
Returns the x coordinate of this point.
constexpr float z() const noexcept
Returns the z coordinate of this point.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QT_BEGIN_NAMESPACE typedef uchar * output