Craft icon indicating copy to clipboard operation
Craft copied to clipboard

how to add a sprite in replace of the cursor?

Open houcy opened this issue 5 years ago • 1 comments

First of all, thanks for the great 3D project, it's awesome! I'd like to add a sprite, say a boy or robot into the stage to replace the default cursor, so the boy can move and controlled like in minecraft. How to make it? Thanks!

houcy avatar Apr 30 '20 01:04 houcy

Well, Craft uses GLFW, so you might be able to use this.

Another option could be to render two triangles directly with OpenGL, and texture them with a simple shader, using alpha blending.

I would opt for the first solution since it's native to the library.

twetzel59 avatar May 08 '20 19:05 twetzel59