DrawNode::setLineWidth() an int, not float?

void DrawNode::setLineWidth(int lineWidth)

Why is the lineWidth argument of type int and not float? The parameter, stored as _lineWidth, is used within to call glLineWidth() which expects a float.

Code snip from DrawNode::onDrawGLLine()

glLineWidth(_lineWidth);

And glLineWidth declaration:

GLAPI void GLAPIENTRY glLineWidth (GLfloat width);

It works, of course, but “dumbs down” the benefit of float. The open gl doc talks specifically about use of float:

https://www.opengl.org/sdk/docs/man3/xhtml/glLineWidth.xml

> If line antialiasing is disabled, the actual width is determined by rounding the supplied width to the nearest integer.