Questions tagged [directx]

DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms.

Microsoft DirectX is a collection of APIs for handling tasks related to multimedia, especially 3D graphics and game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with Direct, such as Direct3D, DirectDraw, DirectMusic, DirectPlay, DirectSound, and so forth. The name DirectX was coined as shorthand term for all of these APIs (the X standing in for the particular API names) and soon became the name of the collection.

More information at Wikipedia article of DirectX

References & Tutorials:

5860 questions
26
votes
2 answers

C# and Arrow Keys

I am new to C# and am doing some work in an existing application. I have a DirectX viewport that has components in it that I want to be able to position using arrow keys. Currently I am overriding ProcessCmdKey and catching arrow input and send an…
Redbaron
  • 1,038
  • 1
  • 10
  • 13
25
votes
4 answers

Why Direct3D application performs better in full screen mode?

The performance of a Direct3D application seems to be significantly better in full screen mode compared to windowed mode. What are the technical reasons behind this? I guess it has something to do with the fact that a full screen application can…
smt
  • 1,171
  • 1
  • 10
  • 13
25
votes
3 answers

Capture visual output of a DirectX application - even in background?

I need to capture the visual output (like a screenshot) of a DirectX window. Currently, I use this approach. But, when the window is in background, it captures whatever is in front of it. I see that DirectX windows render even when minimized or in…
Vercas
  • 8,931
  • 15
  • 66
  • 106
24
votes
8 answers

OpenGL still better than Direct3D for non-games?

The standard model has been that OpenGL is for professional apps (CAD) and Direct3D is for games. With the debacle of openGL 3.0, is openGl still the natural choice for technical 3D apps (cad/GIS)? Are there scenegraph libraries for Direct3D? …
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
24
votes
7 answers

Why is there no DirectX API for Linux?

Upon considering the driver side implementation for DirectX API on windows systems for modern video cards I was wondering why this implementation is not available on non-windows system, most notably linux. Since there is an obvious absence of this…
Brian
  • 951
  • 2
  • 10
  • 20
23
votes
4 answers

Node.js drawing on screen

I've been looking all over the internet for this. I'd like to know if there is any Node.js packages/bindigs/libraries that allow you to make an application that draws on the screen without node-webkit(NW.js)/Electron or other implementations based…
Zorgatone
  • 4,176
  • 4
  • 30
  • 47
22
votes
1 answer

Why can't DirectX/DirectWrite/Direct2D text rendering be as sharp as GDI?

I already know that sub-pixel positioning causes DirectWrite text rendering to be blurry compared to GDI. However, my question is a bit more fundamental: Why can't DirectWrite (and related methods) be made to render text as sharply as GDI? In other…
user541686
  • 205,094
  • 128
  • 528
  • 886
22
votes
3 answers

Where can I learn DirectX programming?

I want to learn DirectX in C++ programming. I decided to learn DirectX, so I found some tutorials online, but they all were very complicated and hard to understand. I have spent 3 days on a tutorial, and I have read everything, but I still can't …
Janman
  • 1,030
  • 2
  • 12
  • 20
22
votes
4 answers

How to produce precisely-timed tone and silence?

I have a C# project that plays Morse code for RSS feeds. I write it using Managed DirectX, only to discover that Managed DirectX is old and deprecated. The task I have is to play pure sine wave bursts interspersed with silence periods (the code)…
Bob Denny
  • 1,306
  • 1
  • 11
  • 18
22
votes
3 answers

3D graphics library for .NET

I would like to learn to make simple 3D applications for Windows 7 / desktop. By that, I mean spheres, triangles or pixels moving around in 3D space. It does not have to be very complicated as of yet. For this, I would like to use C# language with…
Janman
  • 698
  • 1
  • 9
  • 25
22
votes
4 answers

Implementing a complex rotation-based camera

I am implementing a 3D engine for spatial visualisation, and am writing a camera with the following navigation features: Rotate the camera (ie, analogous to rotating your head) Rotate around an arbitrary 3D point (a point in space, which is…
David
  • 13,360
  • 7
  • 66
  • 130
21
votes
3 answers

Capture screen using DirectX

I know how to use GDI to capture screen, however it is very slow (it barely captures 10 fps) I have read that DirectX offers the best speed. But before I start learning DirectX I wanted to test a sample to see if it is really that fast. I have found…
user4592590
20
votes
9 answers

How do I draw simple graphics in C#?

I just want to draw simple 2D objects like circle, line, square etc in C#. How do I do that? Back in the Turbo C++ days I remember initializing some graphics library for doing the same. Do I need to do something similar in .NET? Is it any different…
msvcyc
  • 2,569
  • 4
  • 24
  • 30
19
votes
3 answers

DirectX Desktop

I'd like to make an animated desktop background for Windows 7 using DirectX. I'm using C#, SlimDX and a couple of P/Invoke imports of Windows API functions. I'm not brilliant with native Windows programming, but I've had a poke around online and I…
Jonathan
  • 191
  • 1
  • 3
19
votes
3 answers

Displaying 100 Floating Cubes Using DirectX OR OpenGL

I'd like to display 100 floating cubes using DirectX or OpenGL. I'm looking for either some sample source code, or a description of the technique. I have trouble getting more one cube to display correctly. I've combed the net for a good series of…
user2189331