more castings
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -63,7 +63,7 @@ void DisplayContext::InternalDrawLine(const Vec3& v0, const ColorB& colV0, const
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void DisplayContext::DrawPoint(const Vec3& p, int nSize)
|
||||
{
|
||||
pRenderAuxGeom->DrawPoint(ToWorldSpacePosition(p), m_color4b, nSize);
|
||||
pRenderAuxGeom->DrawPoint(ToWorldSpacePosition(p), m_color4b, static_cast<uint8>(nSize));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@@ -856,7 +856,10 @@ void DisplayContext::DrawLine(const Vec3& p1, const Vec3& p2, const ColorF& col1
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void DisplayContext::DrawLine(const Vec3& p1, const Vec3& p2, const QColor& rgb1, const QColor& rgb2)
|
||||
{
|
||||
InternalDrawLine(ToWorldSpacePosition(p1), ColorB(rgb1.red(), rgb1.green(), rgb1.blue(), 255), ToWorldSpacePosition(p2), ColorB(rgb2.red(), rgb2.green(), rgb2.blue(), 255));
|
||||
InternalDrawLine(ToWorldSpacePosition(p1),
|
||||
ColorB(static_cast<uint8>(rgb1.red()), static_cast<uint8>(rgb1.green()), static_cast<uint8>(rgb1.blue()), 255),
|
||||
ToWorldSpacePosition(p2),
|
||||
ColorB(static_cast<uint8>(rgb2.red()), static_cast<uint8>(rgb2.green()), static_cast<uint8>(rgb2.blue()), 255));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -503,6 +503,7 @@ set(FILES
|
||||
LogFileImpl.h
|
||||
Objects/ClassDesc.cpp
|
||||
Objects/ClassDesc.h
|
||||
Objects/DisplayContextShared.inl
|
||||
Objects/IEntityObjectListener.h
|
||||
Objects/SelectionGroup.cpp
|
||||
Objects/SelectionGroup.h
|
||||
|
||||
Reference in New Issue
Block a user