Jump to content

D3D > Full screen device


Recommended Posts

Hi again ;)

I've tested D3D examples on fps games but it only works when it's in Window mode and not in Full Screen mode.

I think the parameter to change is $iDeviceType of the function _D3D_Init but I don't how to make it work Posted Image

FireFox.

Link to comment
Share on other sites

This is a quick and simple approach. A more robust application should first validate if

the required resolution and other settings are supported by the adapter. Typically,

640x480 is probably supported so there is no need to enumerate for a suitable adapter.

Thanks for your example, but it does not work if the $hGUI is the handle of an external window which works also in fullscreen.

Is it possible to make it work on this external window ?

Br, FireFox.

Link to comment
Share on other sites

@LoadJugag, Direct3D

Thanks for your example, but it does not work if the $hGUI is the handle of an external window which works also in fullscreen.

Is it possible to make it work on this external window ?

Br, FireFox.

You're after rendering to another program's device I guess, right?

If so, I have no clue if you can share the same render object without

the other program explicitly specifying so. Other methods to achieve

that have nothing to do with Direct3D as they are related to dll

injection. What I mean is that only one -full screen- application can

render to the device (excluding multiple monitors) at a present moment.

I might be wrong, though.

Link to comment
Share on other sites

@LoadJugag, Direct3D

You're after rendering to another program's device I guess, right?

If so, I have no clue if you can share the same render object without

the other program explicitly specifying so. Other methods to achieve

that have nothing to do with Direct3D as they are related to dll

injection. What I mean is that only one -full screen- application can

render to the device (excluding multiple monitors) at a present moment.

I might be wrong, though.

Yeah, I would like to work on the another program's device. (like dll injection as you said)

If this is not possible, is there a solution to do a D3D window over this -full screen- application window?

It's the only thing I want to do (like steam's overlay window) in order to avoid backing to desktop.

Br, FireFox.

Link to comment
Share on other sites

Depending on the interface. You can draw on a full screen OpenGL application using DirectDraw.

With Direct3D 8 and up full screen applications, you can't. This is when Microsoft changed the

implementation of surface drawing, it was a DirectDraw surface back then. If the application's

interface is OpenGL, you don't have to use any sort of hacks. If it's Direct3D 8+, you'll need

to use some dll tricks. Google for "Layout Direct3D", you'll find something.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...