is they anyone know how to change mouse pointer look to our own graphic.
Simply, get the mouse coordinates (GetCursorPos(&mpos) if on windows) and put a billboarded poly at that coords or better use an orthographic view just to use the same coords as the window.
Thanks for the answer but i don’t get what u mean. I would like to change the cursor pointer to my own 2d picture whenever i enter to opengl application that i created.
Pls give me the example in c platform coding.
glOrtho(0.0f, width, height, 0.0f, -1.0f, 1.0f);
glTranslatef(mpos.x, mpos.y, 0);
hi mongo…many-many thanks to u. since i was new in this OGL, what to put in this :-
Again appreciate if u pls put some example code.
Draw a Quad or a triangle strip or something and texture it.
Common, I’f you’re new to openGL, start by lerning the basics, you can’t lern programming with copy 'n paste.
hi mongo…thanks a lot and now i was clear.