How to get the primary surface int dx8?

Started by
5 comments, last by bingo 23 years, 5 months ago
the GetFrontBuffer() is funny.
Advertisement
You can''t get it, only a copy with GetFrontBuffer().

-Jussi
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 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.
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
thanks,Selkrank
In DX8''s doc,it said HAL typically only support 32x32 cursor,
How can I do?
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.

quote:Original post by bingo

thanks,Selkrank
In DX8''s doc,it said HAL typically only support 32x32 cursor,
How can I do?


Alexander "DmGoober" Jhinalexjh@online.microsoft.com[Warning! This email account is not attended. All comments are the opinions of an individual employee and are not representative of Microsoft Corporation.]

This topic is closed to new replies.

Advertisement