How to get the primary surface int dx8?
well,I can not use soft mouse cursor in DX8?
I use another thread to blt the cursor to the primary surface
in DX7,it works well,how can I do now?
I use another thread to blt the cursor to the primary surface
in DX7,it works well,how can I do now?
I have another problem.
How to debug the program wrote in DX8,I can''t find a
function to set the CooperativeLevel,so when I set a
breakpoint,the VC''s window do not appear.
How to debug the program wrote in DX8,I can''t find a
function to set the CooperativeLevel,so when I set a
breakpoint,the VC''s window do not appear.
quote:Original post by bingo
well,I can not use soft mouse cursor in DX8?
I use another thread to blt the cursor to the primary surface
in DX7,it works well,how can I do now?
There are a few functions in DX8''s device interface to automatically handle cursors.
quote:I have another problem.
How to debug the program wrote in DX8,I can''t find a
function to set the CooperativeLevel,so when I set a
breakpoint,the VC''s window do not appear
Cooperative levels are set automatically in DX8. I don''t know how to solve the problem, though.
-Jussi
Take a look at d3dapp.cpp. It handles screen size changes, including changes to full screen (this is similar to the old cooperative mode stuff in dx7)
It also handles the cursor, both in full screen and windowed mode. . .
If you must have a cursor bigger than 32 by 32 you are prolly going to have to use directinput and copyrect the new cursor from a surface.
Or, you could continously get the postion of the mouse using the old mouse capture technique and simply copyrect your new cursor.
Of course, when you establish the old cursor, you have to make sure it is blank so you dont have both cursors showing up.
It also handles the cursor, both in full screen and windowed mode. . .
If you must have a cursor bigger than 32 by 32 you are prolly going to have to use directinput and copyrect the new cursor from a surface.
Or, you could continously get the postion of the mouse using the old mouse capture technique and simply copyrect your new cursor.
Of course, when you establish the old cursor, you have to make sure it is blank so you dont have both cursors showing up.
quote:Original post by bingo
thanks,Selkrank
In DX8''s doc,it said HAL typically only support 32x32 cursor,
How can I do?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement