![]() |
【转帖】draw a cross cursor in opengl device
draw a cross cursor in opengl device
draw a cross cursor in opengl device hello, i was wondering how i could draw a cross cursor in the opengl device. i've made a small application like the singledoc project but with a opengl device and i want to draw a mouse cursor like in autocad (to get the axis x,y and z) i can draw this cursor over the device by making a getdc and drawing with win gdi but it's not clean and it's quite complicate to do it for 3d cursor. thanks in advance maybe i'll try to ask my question in an other way. and start with a basic question. is it possible to draw some stuff in the device (opengl, wingdi or directx) without adding this stuff in the database? it's possible. see odamfcapp sample. it draws the cursor. sergey slezkin thanks for your answer but i don't understand how i can display my own cursor. i've looked in odamfcapp sample and the only cursor drawn seems to be the rectframe to select few entities. this cursor is a predefine cursor and is draw by an internal class, is it? can i have some more explanation, please? i'm a bit lost. it's ok, thank you. i solved my problem. i hadn't found the class rubberband and rectframe in the exdbcommandcontext file. i've made my cursor with the same way the rectframe cursor but it's a bit slow. is it possible to make it faster ? the speed seems to be directly linked with the size of the drawing. we have the same problem too ! quote: originally posted by darra i've made my cursor with the same way the rectframe cursor but it's a bit slow. is it possible to make it faster ? the speed seems to be directly linked with the size of the drawing. in our application we have the same problem too ! |
所有的时间均为北京时间。 现在的时间是 03:16 AM. |