Example #1
0
void manipulateVoxel::drawCoord(int boneIdx) const
{
	float length = s_voxelObj->m_voxelSizef * 3;
	Vec3f c = m_centerBox[boneIdx];

	arrayVec3f coords = { Vec3f(1, 0, 0), Vec3f(0, 1, 0), Vec3f(0, 0, 1) };

	glBegin(GL_LINES);
	for (auto co : coords)
	{
		glColor3fv(co.data());
		glVertex3fv(c.data());
		glVertex3fv((c + co*length).data());
	}

	glEnd();
}