Signature of DrawTriangles() - what is img for? #1434
-
Hello, I have trouble understanding the method signature. In my use case, I just want to draw vector lines in the specified color. I ended up giving a random image for this argument because even though it is a pointer, the program crashes when it is null.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi, The given image is used in the same manner as |
Beta Was this translation helpful? Give feedback.
Hi,
The given image is used in the same manner as
DrawImage
. The image is rendered on the triangles specified by the given vectors and indices. The texture coordinates are specified by the vertices. SeeVertex
definition.