This is my first stack overflow question :)
Question:
I would like to set the width of the line that I draw in Metal. I can set the size of a point using point_size, as described here:
https://developer.apple.com/library/prerelease/ios/documentation/Metal/Reference/MTLRenderCommandEncoder_Ref/index.html
But I'm not sure how this works with lines.
Thank!
Arthur
The short answer would be that there is no way to control the line width in the same way as the size of a point in a metal. Even in the OpenGL graphics API, the function to do this (which previously existed as a gllinewidth function) is now deprecated.
() . .
, - StackOverflow OpenGL, . API .
2D- , . , drawPrimitives, instanceCount, , vertex_id . , , , - .
drawPrimitives
instanceCount
vertex_id
, instanceCount , .
, . . , , y, , x. . , , .
, , . .
Euclid , , , , . , , , , , , , , , . .