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
14
votes
4 answers

How do I get input from an XBox 360 controller?

I'm writing a program that needs to take input from an XBox 360 controller. The input will then be sent wirelessly to an RC Helicopter that I am building. So far, I've learned that this can be done using either the XInput library from DirectX, or…
bengineerd
  • 1,268
  • 1
  • 16
  • 18
14
votes
1 answer

How GDI/GDI+ works without OpenGL or DirectX

Sorry if this is off-topic here. If so; please feel free to move it to the appropriate site. How does GDI/GDI+ render to the graphics card (display content on the screen) without the use of a lower-level API for communicating with the GPU such as…
bbosak
  • 5,353
  • 7
  • 42
  • 60
14
votes
1 answer

What's the best tool you can use to learn to program shaders?

I've recently been doing some DirectX 10 work and I'm looking to move to DirectX 11 and Shader Model 5.0. I've written a few very simple shaders in the past and I'm looking to broaden my horizons and venture into more complex shaders. My question is…
Darkenor
  • 4,349
  • 8
  • 40
  • 67
14
votes
2 answers

Generating vertices for a sphere

In the DirectX mobile lighting sample, a cylinder is generated in the following manner: for( DWORD i=0; i<50; i++ ) { FLOAT theta = (2*D3DMX_PI*i)/(50-1); pVertices[2*i+0].position = D3DMXVECTOR3(…
Gayan
  • 1,697
  • 7
  • 26
  • 35
14
votes
8 answers

Any Games Engine for Delphi?

I want to create a game in Delphi Is there any good game engine for Delphi? based on directx 10 or OpenGL? I need it for 3D games, or can I only do that with C++?
user390957
  • 266
  • 2
  • 6
14
votes
2 answers

OpenGL/DirectX: How does Mipmapping improve performance?

I understand mipmapping pretty well. What I do not understand (on a hardware/driver level) is how mipmapping improves the performance of an application (at least this is often claimed). The driver does not know until the fragment shader is executed…
matthias_buehlmann
  • 4,641
  • 6
  • 34
  • 76
14
votes
4 answers

Missing files, DirectX SDK (d3dx9.lib, d3dx9.h)

I installed the DirectX SDK June 10, but when I include the d3dx9.h, the compiler can't find it. I checked the SDK directory, and I didn't find it there either. files missing: d3dx9.lib, d3dx9.h, dxfile.h.
Carlos Martinez
  • 4,350
  • 5
  • 32
  • 62
14
votes
5 answers

Fast multi-window rendering

I've been searching and testing different kinds of rendering libraries for C# days for many weeks now. So far I haven't found a single library that works well on multi-windowed rendering setups. The requirement is to be able to run the program on…
user4157482
  • 809
  • 11
  • 18
14
votes
3 answers

OpenGL/DirectX Hook - Similar to FRAPS

Is it possible to detect what applications are using OpenGL or DirectX similar to what FRAPS does? (Possibly using some form of hook)? I probably won't need to actually draw to the window, I just need to know what processes are doing some form of 3D…
David
  • 15,652
  • 26
  • 115
  • 156
13
votes
7 answers

Is DirectX on Java possible?

Is there an easy way to use DirectX in Java? In particular, DirectX's video APIs. I know that C# might be a more natural choice, but I have my devious reasons for wanting to do something so perverse.
izb
  • 50,101
  • 39
  • 117
  • 168
13
votes
4 answers

On Windows, how does OpenGL differ from DirectX?

I don't have any hands on experience with graphics programming. I got this doubt when I was reading about graphics programming. From what I understand, because Windows didn't offer DOS like direct hardware access, DirectX was created. That means…
Ken
  • 133
  • 1
  • 4
13
votes
4 answers

Is it possible to run Java3D applications on Nvidia 3D Vision hardware?

Is is possible to run a Java3D application on Nvidia 3D Vision hardware? I've got an existing Java3D application that can run in stereoscopic 3D. In the past, I've always run the application on Quadro cards using the OpenGL renderer and quad…
JohnnyO
  • 3,018
  • 18
  • 30
13
votes
2 answers

How can I develop universal windows 10 apps with pure C++ and not C++/CLI?

I want to develop universal windows apps using C++/DirectX/XAML. But it seems like there's no way to escape Microsoft's C++/CLI language. I've already browsed through the code that isnthere by default when you make an pty project, and it is all…
Gary S
  • 313
  • 1
  • 4
  • 9
13
votes
3 answers

Hook/Overlay a DirectX game?

Can anyone tell me how to hook/overlay a DirectX game in C#? I've tried getting a fullscreen C# window to overlap a game, however it wont. After researching a little, I found out that I need to hook the game and then display the C# window. Can…
Joey Morani
  • 25,431
  • 32
  • 84
  • 131
13
votes
2 answers

Why does OpenGL be designed as a state machine originally?

During my OpenGL experience, I often forgot to set some states. So I think state machine may not be a good design today. But now it has to be compatible. And I also know that DirectX was also a state machine in the early days. I'd like to know why…
Shen Yang
  • 477
  • 5
  • 10