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
0
votes
0 answers

Getting pixel color with DirectX 11

I have implemented these functions to get single pixel color: // Get Pixel Color ID3D11Resource* SourceResource; ID3D11Texture2D* DestinationTexture2D; ID3D11DeviceContext* Context = nullptr; void CreateSourceResource(IDXGISwapChain*…
marcoluca987
  • 59
  • 1
  • 5
0
votes
1 answer

How to set Direct Draw clipper according to window's client area position relative to the screen

I'm adding Direct Draw rendering option to my 2D Graphics Engine. When setting the Direct Draw Clipper on a non fullscreen application clipper clips the client area with an offset if the Window's client area top left position is not on the 0,0 of…
Caner Kurt
  • 91
  • 1
  • 9
0
votes
0 answers

Faster alternative to DirectDraw Surface GetDC()?

Problem I am trying to draw Direct2D content to a DirectDraw surface (backbuffer), this part is fine. The problem is the cost of using GetDC() on the DirectDraw surface (on a modern pc), which locks and gets the device context which is then used to…
Nork
  • 23
  • 5
0
votes
0 answers

LibVlc can't be used in Qt Frame in Python

So I'm trying to embed a few VLC media players into their separate QTFrames. Everything is done in python. However for some reason the official example doesn't want to work (found here) My code looks like this: for files in tutorialVideoFiles: …
gogo199432
  • 35
  • 5
0
votes
1 answer

Does Direct Write have equivalent to GDI regions

In classic Windows GDI there was a feature called 'Regions'. Basically you could combine simple geometric shapes to construct complex shapes via this feature. A region had a handle and could be called into a dc for filling or used as a clipping…
Vanquished Wombat
  • 9,075
  • 5
  • 28
  • 67
0
votes
0 answers

Fastest method for drawing a picture on the screen

I need to draw a stream of pictures (live video) on the screen in a Windows machine, and speed of drawing must be as fast as possible (i.e. lowest latency). I tried DirectDraw with blitting from offscreen surface to primary and it introduces…
Isso
  • 1,285
  • 11
  • 23
0
votes
1 answer

Resolving 'LNK2019 unresolved external symbol' on DirectDrawCreate

I've been attempting to get DirectDraw to function on a CE5.0 framework for the last week and I'm running into some very odd issues. ddrval = DirectDrawCreate(NULL, &lpDD, NULL); When I have this function in my code, I get "error LNK2019:…
Lunin
  • 370
  • 2
  • 9
0
votes
1 answer

'The parameter is incorrect' while attempting to use PInvoke DirectDraw in WinCE5.0

I've been having an issue for a while in regards to getting DirectDraw to function on a CE5.0 system. I finally found some code involved with getting it working on Windows Moblie, and through some messing about, I've got the code compiling…
Lunin
  • 370
  • 2
  • 9
0
votes
2 answers

DirectDraw question - running the application as a regular Windows application

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…
Niko Gamulin
  • 66,025
  • 95
  • 221
  • 286
0
votes
1 answer

sdl remote desktop

for a simple demo program I am using the SDL library to play a mpeg movie file. Unfortunately the demo app should be executed on one of our windows 7 servers and it should be looked at remotely. The problem is, that when I connect via RDP to the…
chris
  • 257
  • 1
  • 2
  • 7
0
votes
2 answers

DirectDraw output adaptation

I'm working on a project to add functionality to an old game; the idea is to add the option to run it windowed (originally it only supports 800x600 fullscreen). So far, i modified directDraw's initialization to remove fullscreen exclusive mode and…
0
votes
1 answer

DirectDraw: Clipping fails if surface is larger than backbuffer

I'm writing a game engine for mobile devices, and I'm trying to support multiple resolutions. The game world can be much larger than the screen, so I'm using a clipper to create a viewport on the world. My device has a resolution of 240x320. When I…
knight666
  • 1,599
  • 3
  • 22
  • 38
0
votes
1 answer

c++ - Win32 window freezes after the first draw (directx 11)

I have a standard win32 window, that I draw on with D2D1. Everything is responsive and runs smoothly. My problem is as follows: After the window is created, it calls WM_PAINT once and then gets "stuck" waiting for any user input (ex. mouse move or…
0
votes
1 answer

Implement Hardware Acceleration for Graphics in Silverlight for Windows Embedded

Does anyone have any sample code to how to use DDraw & OpenGL in wince? I have searched the net and I didn't find anything on how to implement hardware acceleration in wince using DDraw & OpenGL. Please guide me how to use OpenGL API in wince 6.0…
Abhineet
  • 6,459
  • 10
  • 35
  • 53
0
votes
1 answer

Cube mapping in OpenGL using DDS compressed images?

I am having trouble cube mapping when using a DDS cube map, I'm just getting a black cube which leads me to believe I have missing something simple, here's the code so far: DDS_IMAGE_DATA *pDDSImageData = LoadDDSFile(filename); //compressedTexture…
paj777
  • 255
  • 1
  • 4
  • 12