mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027727: Visualization, Graphic3d_ArrayOfPrimitives::SetVertexColor() - define opaque color for RGB input
This commit is contained in:
@@ -175,7 +175,7 @@ inline void Graphic3d_ArrayOfPrimitives::SetVertexColor (const Standard_Integer
|
||||
{
|
||||
Graphic3d_Vec4ub aColor (Standard_Byte(theR * 255.0),
|
||||
Standard_Byte(theG * 255.0),
|
||||
Standard_Byte(theB * 255.0), 0);
|
||||
Standard_Byte(theB * 255.0), 255);
|
||||
SetVertexColor (theIndex, *reinterpret_cast<Standard_Integer*>(&aColor));
|
||||
}
|
||||
myAttribs->NbElements = Max (theIndex, myAttribs->NbElements);
|
||||
|
Reference in New Issue
Block a user