directdraw

Mix opengl and directdraw in different windows of the same application?

Hi, I'm developing an application with two windows: Window 1: Renders direct draw surfaces Window 2: I'd like to have it do pure OpenGL calls I don't want to mix OpenGL and DirectDraw in the same window. I see from the Open GL FAQ (http://www.opengl.org/resources/faq/technical/mswindows.htm) that you can't mix the API calls inside ...

DirectDraw question - running the application as a regular Windows application

Hi, I am developing an application for video recording and I want to overlay the video preview with a logo and recording timer. I tried to run the full-screen application and everything worked fine. Then I tried to run the application as a regular Windows application and it returned an error. Could anyone take a look at the code below...

"Exclusive" DirectDraw palette isn't actually exclusive

We're maintaining an old video game that uses a full-screen 256-color graphics mode with DirectDraw. The problem is, some applications running in the background sometimes try to change the system palette while the game is running, which results in corrupted graphics. We can (sometimes) detect when this happens by processing the WM_PALE...

DirectDraw - Overlaying

Greetings. I have been trying to create a directdraw overlay for an FPS game so that I could draw certain something over it (windowed mode) (I have been using GDI and it flickers... I know its because of synchronization but I dont want to inject any code into the game) I would appreciate it if you could give me an example usage of dire...

Rotate an Image in Windows Mobile Programming

Are there any mechanism within Windows Mobile programming to rotate a Bitmap? I would like to rotate this to any angle. ...

How do I handle screen rotation when using DirectDraw Surfaces on WindowsMobile?

I'm having a difficult time coming up with finding the right hooks and making the calls at the right time to gracefully handle changing screen rotation on a mobile device when rendering the screen using DirectDraw surface. I know at some point I need to call Restore() and RestoreAllSurfaces() but these don't appear to be working. I als...

Internet Explorer control (or other) rendered onto a directdraw surface

Hi everyone. I'm tasked with modifying an existing c++ codebase which uses directdraw for its UI. Is it possible to make use of a browser control that renders onto one of the (existing) directdraw surfaces? If so, can anyone point me in the right direction on how to get started? (or an alternative approach) Regards all, Jaime ...

compiling DirectX transform (DES effect) for x64

Hello, I've got a DirectX transform working perfectly on XP, Vista and Windows 7 32 bit. Like most DirectX transforms it compiles against part of the DirectX6 media SDK, with DirectShow headers from Microsoft DirectX SDK Extras from 2006 My application now needs to be ported to 64 bit, to handle the large memory requirements of HD. I w...

What might cause IDirectDraw::GetCaps returns DDERR_INVALIDPARAMS?

Hello, I have this little snippet of code with IDirectDraw::GetCaps returning DDERR_INVALIDPARAMS (a.k.a. E_INVALIDARG, a.k.a. 0x80070057). The loaded dll is ddraw.dll 5.03.2600.5512 (xpsp.080413-0845) I need to check whether the display hardware has 3D acceleration (DDCAPS_3D). I have no idea to solve the problem, the snippet is so s...

C++ function to do DxDiag "Direct3D Acceleration" detection

Hello, Microsoft DxDiag can detect whether a system has "Direct3D Acceleration". If the system has not the capability, DxDiag will write "Direct3D Acceleration not available" and will write in the console "Direct3D functionality not available. You should verify that the driver is a final version from the hardware manufacturer." I woul...

Is BltFast supported in Windows Mobile DirectDraw?

Can I get access IDirectDrawSurface5 on a WindowsMobile device so that I can access the BltFast method? ...

Stretch blit in DirectX results in jagged edges

I have a Direct3D app which runs windowed or fullscreen at a fixed res (say 800x600). To support widescreen modes, I render to the back buffer at 800x600 and then use Blt to draw the final frame into a portion of the front buffer, which is usually bigger (say 1280x720), so the 800x600 image is stretched to 960x720 to maintain the aspect ...

Capture camera stream to screen

Hi, I'm googling since two days and I cannot find any solution for this: I'm using Windows Mobile and I need to capture (with directdraw) the input from a camera device and output it directly on screen. You could think of it as a copy of the camera application that's built in to the Windwos Mobile OS. What I've been trying is to use ...

Getting programmicaly Device Caps for DirectX 6.1 (DDraw4)

I am writing windows32 hooks around DirectX 6.1 library to DirectX 9.0c; Idea is to replace all calls to DX 6.1 3D device with calls to Direct 9.0c and inject some custom code, so old game which I am patching (99' year) will be able to use shaders, post-effects, etc. The old DX 6.1 3D device was created by creating DDraw module. Game is...

DirectDraw Overlays

Does anyone have a working example (code) of a DirectDraw overlay? Like something moving on the screen. I have been trying to find an example of DirectDraw overlaying usage and was unable to. Thank you. ...

Drawing video with text on top

I am working on an application and I have a problem I just cant seem to find a solution for. The application is written in vc++. What I need to do is display a YUV video feed with text on top of it. Right now it works correctly by drawing the text in the OnPaint method using GDI and the video on a DirectDraw overlay. I need to get rid ...

DirectX9, DirectDraw, Optimization?

First off, I'm programming a game. Currently in the render function there are two calls to two different functions. One renders some text, one renders sprites. On my computer (AMD Phenom(tm) II X4 955 Processor (4 CPUs), ~3.2GHz, 4096MB RAM DDR2, NVIDIA GeForce GTX 285) I have a render speed of ~2200 FPS when rendering around 200 sprite...

Directdraw: Rotate video stream

Problem http://stackoverflow.com/questions/2318390/windows-mobile-directdraw-rotate-video-stream The video preview is working, all I need now is a way to rotate the image. I think the only way to handle this is to write a custom filter based on CTransformFilter that will rotate the camera image for you. If you can help me to solve this...

Windows Mobile / Directdraw: Rotate video stream

Follow up from: http://stackoverflow.com/questions/2289637/windows-mobile-directdraw-display-video-stream-take-picture I managed to preview the camera's video stream, but the image is rotated by 90° to landscape mode. I'm now searching for a way to rotate the camera image back to normal, but the problem is I don't even know where to sta...

[DirectDraw] Problem with bliting YUV surface onto the primary surface in Window Mobile

I'm trying to blit YUV hardware surface to the primary surface in WinMobile. Everything works: creation of the surfaces, I test that the passed FourCC code is actually used by querying the surface description, I set puffer pointer (correctly, according to lPitch and width/height of the surface). I verified that it all works properly on P...