Hi all!
I have a custom Cursor class written in C++. The image (a *.tex file) is being drawn multiple times across the window as I move the mouse.
How can I draw it only where the mouse is, and avoid it being drawn all over the place?
I have this for drawing:
context->SetBlendMode(Leadwerks::Blend::Alpha);
context->DrawImage(cursorImage, (mousePosition.x - cursorOffset.x), (mousePosition.y - cursorOffset.y));
context->SetBlendMode(Leadwerks::Blend::Solid);
I've attempted clearing the context - which resolves this issue - but other drawn images do not display, as the cursor is the last thing to be drawn.
Many thanks