Questions tagged [directdraw]

DirectDraw is a deprecated API that used to be a part of Microsoft's DirectX API.

DirectDraw is used to accelerate rendering of graphics in applications. DirectDraw also allows applications to run fullscreen or embedded in a window such as most other MS Windows applications. DirectDraw uses hardware acceleration if it is available on the client's computer. DirectDraw allows direct access to video memory, hardware overlays, hardware blitters, and page flipping. Its video memory manager can manipulate video memory with ease, taking full advantage of the blitting and color decompression capabilities of different types of display adapters.

91 questions
2
votes
0 answers

DirectDraw: Can I keep the primary surface Locked?

I have a legacy game which uses DirectDraw2 which does its drawing into two buffers, a front and back, where the front is the primary surface (on-screen) and the back is an off-screen buffer. Now in the main loop it nicely Locks the front buffer,…
MicroVirus
  • 5,324
  • 2
  • 28
  • 53
2
votes
1 answer

What to use instead DirectDraw

I've just rebuilt my old DirectDraw based game and I'm very happy with the results! It was one of my first C++ programs in a diectx world. But I was disappointed to discover that DirectDraw is deprecated. After installing DirectX SDK July 2010 there…
netanalyzer
  • 634
  • 2
  • 6
  • 23
2
votes
2 answers

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

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…
Alessandro Jacopson
  • 18,047
  • 15
  • 98
  • 153
2
votes
2 answers

DDS DXT1 loading in OpenGL, crashes

Any idea whats wrong with my code? when i execute glCompressedTexImage2D() the program just crashes (comes the Windows XP crash message thing...) Im trying to load DDS image without mipmaps, the image format is DDS DXT1 Am i missing some include…
Newbie
2
votes
2 answers

Creating a simple, single buffer application (IDirectDraw)

I am attempting to author a single buffered, windowed application using the original DirectDraw interface. This is purely for educational purposes and the just because attitude. I'm playing around with the IDirectDraw interface (I stress this is the…
user2379628
2
votes
1 answer

DirectDrawSurface (DDS) pitch computation

I've been studying the DDS format and writing a DDS texture loader for the past two days, just because of curiosity and I ran into something that I used for granted, the "pitch computation formulae". I am really curious as to why they are specified…
Fractal Resurgence
  • 317
  • 1
  • 4
  • 12
2
votes
0 answers

Detecting and getting dirty regions in WPF?

Any way of getting the redraw/dirty regions in a WPF application? I would like to have them programmatically and not only visualized. My goal is to know when and what has redrawn in a WPF app for a kind of remoting application.
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
1
vote
3 answers

DirectDraw get procedure address using GetProcAddress

As stated in the documentation for the IDirectDraw7::SetCooperativeLevel method, it states You must use LoadLibrary to explicitly link to Ddraw.dll and then use GetProcAddress to access the SetCooperativeLevel method. in the remarks. However when…
cplusplus
  • 614
  • 6
  • 14
1
vote
1 answer

DirectDraw Blt function parameters

Just a simple blt function: RECT dstRect = {dstL, dstT, dstR, dstB}; RECT srcRect = {srcL, srcT, srcR, srcB}; HRESULT hr = _surface->Blt(&dstRect,source,&srcRect,DDBLT_WAIT, NULL); My question is: let's say I have a buffer of width 'w', I specify…
Smash
  • 3,722
  • 4
  • 34
  • 54
1
vote
1 answer

Target most Windows versions for a 2D game?

If one were to code a game for most versions of Windows, which API should be used? I know DirectDraw works from NT4 and up (although DirectDraw is emulated on NT4 with GDI). However, I am told DirectDraw is deprecated in newer versions of Windows? I…
Prof. Falken
  • 24,226
  • 19
  • 100
  • 173
1
vote
2 answers

DirectDraw better than Direct3d for streaming?

Let me specify little background. I currently use an open source program to run my TV Tuner (DScaler). The final version for the software has some support for Direct3D output, the problem with this is that it lags. I have been going through the code…
Vix
  • 11
  • 1
1
vote
0 answers

What does 'Running this application turns off the Desktop Window Manager' signify?

MS states, with regard to the Application Manifest compatibility section: Manifestation of Change Applications without a Compatibility section in their manifest will receive Windows Vista behavior by default on Windows 7 and future Windows…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
1
vote
1 answer

Use Graphic card (DirectX, OpenGL) instead of GDI or GR32 functions

Currently I use GR32 functions for my project, where I have lots of blending, image operations such as saturation, contrast, blur etc. Also custom image operations. Basically I would like to replace GR32 (or GDI, no difference) with graphic card…
Ivan Mark
  • 463
  • 1
  • 5
  • 17
1
vote
0 answers

How to scale a sprite image without losing color key information?

I'm currently developing a simple application that displays map and draws some markers on it. I'm developing for Windows Mobile, so I decided to use DirectDraw and Imaging interfaces to make the application fast and pretty. The map moves when user…
Michael P
  • 670
  • 7
  • 23
1
vote
0 answers

Lock failing on IDirectDrawSurface7 during RDP sessions

I am maintaining an old application that, among other things, displays tiny video feeds on screen. The application works fine unless you run it while viewing the desktop through RDP. When we go to acquire the write pointer via IDirectDrawSurface7's…
Techrocket9
  • 2,026
  • 3
  • 22
  • 33