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
17
votes
3 answers

Why not use GDI to repeatedly fill a window with RGB data from an array?

This is a follow-up to this question. I'm currently writing a simple game and am looking for the fastest way to (repeatedly) display an array of RGB data in a Win32 window, without flickering or other artifacts. Several different approaches were…
user200783
  • 13,722
  • 12
  • 69
  • 135
12
votes
1 answer

Can DirectDraw game access a backbuffer without locking it?

I'm modding an old Windows DirectDraw game. I've created a DirectDraw proxy. It logs every IDirectDraw and IDirectDrawSurface call. The backbuffer looks like this after one BltFast call: And like this before the next BltFast call: These pictures…
cubuspl42
  • 7,833
  • 4
  • 41
  • 65
7
votes
3 answers

How to work with pixels using Direct2D

Could somebody provide an example of an efficient way to work with pixels using Direct2D? For example, how can I swap all green pixels (RGB = 0x00FF00) with red pixels (RGB = 0xFF0000) on a render target? What is the standard approach? Is it…
Alex
  • 655
  • 1
  • 8
  • 16
6
votes
2 answers

Replacing legacy DirectDraw code

Yesterday I found source codes for my Tetris game developed many years ago in C++, Win32 API and DirectDraw 7. I tryed to build solution without any success because most recent DirectX SDK (June 2010) does not include DDraw.h and DDraw.lib any…
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
6
votes
4 answers

What's the fastest way to repeatedly fill a window with RGB data from an array?

I'm currently writing a simple game. My graphics code runs once per frame (approximately 30 times per second), and writes RGB data to an array with 640 * 480 = 307200 entries. I have created a Win32 window with a client area exactly 640 x 480 pixels…
user200783
  • 13,722
  • 12
  • 69
  • 135
6
votes
4 answers

How do you draw text in DirectX 12?

This is a follow-up question of How do you draw text in DirectX 11? In Direct3D-12, things got much more complex and since it's new I couldn't find any suitable libraries online. I'm building a basic Direct3D12 FPS Test application, and I like to…
ngub05
  • 566
  • 1
  • 8
  • 15
6
votes
2 answers

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…
thecaptain0220
  • 2,098
  • 5
  • 30
  • 51
5
votes
3 answers

Win32: How to determine if DirectDraw is enabled?

When using CachedBitmaps in GDIPlus, there is graphical corruption if Windows video "Hardware Acceleration" is lowered too much - such that DirectDraw is disabled: There are six levels of hardware acceleration: Disable all accelerations Disable…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
1 answer

DirectDraw + Layered window color key?

I'm creating a window with WS_EX_LAYERED and setting a color key to it using SetLayeredWindowAttributes(). I can verify that this color key indeed creates a transparent patch in the window by drawing a simple rect using FillRect() inside the window.…
shoosh
  • 76,898
  • 55
  • 205
  • 325
5
votes
5 answers

"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…
Vladimir Panteleev
  • 24,651
  • 6
  • 70
  • 114
4
votes
3 answers

How to load .dds files into a picturebox?

How do I load .dds texture files as an Image in C#? There's nothing useful on google that I could find. The more information with samples you give me,the better it will be for me to understand it.
Ivan Prodanov
  • 34,634
  • 78
  • 176
  • 248
4
votes
2 answers

error LNK2001: unresolved external symbol _IID_IDirectDraw2

I work with piece of legacy code which uses direct draw and I'm in rather embarrassing situation. Not long ago I've updated my system and had to adapt to the new situation (loading ddraw.dll) and everything worked fine. Today I explored another…
Deka
  • 131
  • 1
  • 4
  • 12
4
votes
2 answers

I thought *.DDS files were meant to be quick to load?

Ok, so I'm trying to weigh up the pro's and con's of using various different texture compression techniques. I spend 99.999% of my time coding 2D sprite games for Windows machines using DirectX. So far I have looked at texture packing (SpriteSheets)…
Siyfion
  • 416
  • 1
  • 6
  • 17
3
votes
1 answer

Find index of particular function in COM Interface's Vtable

I'm trying to hook the SetCooperativeLevel function in the DirectDraw object. My goal is very similar to the one in this question API Hook on a COM object function? however the only problem is that I don't know the exact offset in IDirectDraw's…
cplusplus
  • 614
  • 6
  • 14
3
votes
3 answers

DDS texture loading

How would I load a dds texture file into an OpenGL 2dtexture or cube map texture?
Tom J Nowell
  • 9,588
  • 17
  • 63
  • 91
1
2 3 4 5 6 7