View Full Version : change mouse pointer look to our own graphic.
03-18-2001, 11:55 AM
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.
03-19-2001, 02:44 AM
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.
03-19-2001, 08:25 AM
glOrtho(0.0f, width, height, 0.0f, -1.0f, 1.0f);
glTranslatef(mpos.x, mpos.y, 0);
03-19-2001, 10:25 AM
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.
03-19-2001, 11:05 AM
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.
03-19-2001, 11:25 AM
hi mongo........thanks a lot and now i was clear.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.