mirror of
https://github.com/leozide/leocad
synced 2025-01-26 19:58:08 +01:00
Color entire axis arrows.
This commit is contained in:
parent
c26b52ea5e
commit
ddd8405c7e
2 changed files with 7 additions and 3 deletions
|
@ -1140,7 +1140,7 @@ const lcCommand gCommands[] =
|
|||
// LC_VIEW_TOGGLE_GRID
|
||||
{
|
||||
QT_TRANSLATE_NOOP("Action", "View.ToggleGrid"),
|
||||
QT_TRANSLATE_NOOP("Menu", "Grid"),
|
||||
QT_TRANSLATE_NOOP("Menu", "Base Grid"),
|
||||
QT_TRANSLATE_NOOP("Status", "Toggle grid"),
|
||||
""
|
||||
},
|
||||
|
|
|
@ -1041,8 +1041,12 @@ void lcView::DrawAxes() const
|
|||
mContext->SetVertexFormatPosition(3);
|
||||
mContext->SetIndexBufferPointer(Indices);
|
||||
|
||||
mContext->SetColor(0.0f, 0.0f, 0.0f, 1.0f);
|
||||
mContext->DrawIndexedPrimitives(GL_LINES, 6, GL_UNSIGNED_SHORT, 0);
|
||||
mContext->SetColor(0.8f, 0.0f, 0.0f, 1.0f);
|
||||
mContext->DrawIndexedPrimitives(GL_LINES, 2, GL_UNSIGNED_SHORT, 0);
|
||||
mContext->SetColor(0.0f, 0.8f, 0.0f, 1.0f);
|
||||
mContext->DrawIndexedPrimitives(GL_LINES, 2, GL_UNSIGNED_SHORT, 2 * 2);
|
||||
mContext->SetColor(0.0f, 0.0f, 0.8f, 1.0f);
|
||||
mContext->DrawIndexedPrimitives(GL_LINES, 2, GL_UNSIGNED_SHORT, 4 * 2);
|
||||
|
||||
mContext->SetColor(0.8f, 0.0f, 0.0f, 1.0f);
|
||||
mContext->DrawIndexedPrimitives(GL_TRIANGLES, 24, GL_UNSIGNED_SHORT, 6 * 2);
|
||||
|
|
Loading…
Add table
Reference in a new issue