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

How do you draw text in DirectX 11?

In DirectX 10 you could use the font interface provided by D3DX10. In DirectX 11 you are supposed to use DirectWrite. But it looks like DirectWrite doesn't speak natively to Direct3D? Is there something basic I'm missing? How do you draw simple text…
Darkenor
  • 4,349
  • 8
  • 40
  • 67
18
votes
7 answers

Take screenshot of DirectX full-screen application

This boggles me. DirectX bypasses everything and talks directly to the device driver, thus GDI and other usual methods won't work - unless Aero is disabled (or unavailable), all that appears is a black rectangle at the top left of the screen. I…
CMircea
  • 3,543
  • 2
  • 36
  • 58
17
votes
1 answer

Glsl mod vs Hlsl fmod

I've implemented the spiral GLSL shader described in this question in HLSL, but the results are not the same. I think it's because of the mod function in GLSL that I've translated to fmod in HLSL. I suspect that this problem only happens when we…
Ivo Leitão
  • 337
  • 1
  • 4
  • 16
17
votes
1 answer

Correct way to wait for VBLANK on windows 10 in windowed mode

What is the correct way to wait for VBLANK to present on windows 10 in windowed mode? Currently I'm doing the following: D3DKMTWaitForVerticalBlankEvent(&waitData); swapchain->Present(0, 0); However this leads to occasional stutter. My current…
sudowoodo
  • 473
  • 4
  • 14
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
17
votes
5 answers

Where can I find some in-depth DirectX 11 tutorials?

So far the only tutorials I've been able to find are on directx11tutorials.com, which are essentially inferred from the existing samples. Does anyone know where to find other tutorials, or better yet open source projects using DirectX 11? (Extra…
Stefan Valianu
  • 1,370
  • 2
  • 13
  • 24
17
votes
4 answers

Direct3D Line thickness

How do I change the thickness of lines when drawing line lists using Direct3D? This post says that line width is not supported and goes on to provide a workaround. Other options? While we are on this topic, do shaders allow one to draw lines with…
Agnel Kurian
  • 57,975
  • 43
  • 146
  • 217
17
votes
3 answers

How do I calculate pixel shader depth to render a circle drawn on a point sprite as a sphere that will intersect with other objects?

I am writing a shader to render spheres on point sprites, by drawing shaded circles, and need to write a depth component as well as colour in order that spheres near each other will intersect correctly. I am using code similar to that written by…
David
  • 13,360
  • 7
  • 66
  • 130
17
votes
3 answers

How does the centripetal Catmull–Rom spline work?

From this site, which seems to have the most detailed information about Catmull-Rom splines, it seems that four points are needed to create the spline. However, it does not mention how the points p0 and p3 affect the values between p1 and…
meds
  • 21,699
  • 37
  • 163
  • 314
16
votes
4 answers

Direct3D 11 missing GetRasterStatus, how do I detect the vertical blank period?

I'm updating an application in which measurement of the time of presentation of a stimulus on a screen requires the greatest amount of accuracy. It is currently written with DirectDraw, which got put out to pasture a long while ago, and there's a…
Rob
  • 855
  • 7
  • 8
16
votes
1 answer

Fullscreen DirectX Overlay? Yes.. again C#

It looks like this question has been asked multiple times each in a different context and I have made some strides in making an overlay for a game (This is for informational data, etc..). I Would also like to make it inter-actable like Steam and…
Tyler
  • 668
  • 1
  • 8
  • 22
16
votes
7 answers

Should I use DirectInput or Windows message loop?

I'm working on a C++ DirectX 2D game and I need keyboard and mouse input. Wikipedia says: Microsoft recommends that new applications make use of the Windows message loop for keyboard and mouse input instead of DirectInput So how should I use it? I…
Adir
  • 1,423
  • 3
  • 19
  • 32
16
votes
4 answers

Collisions in a real world application

Here's my problem. I'm creating a game and I'm wondering about how to do the collisions. I have several case to analyze and to find the best solution for. I'll say it beforehand, I'm not using any third party physics library, but I'm gonna do it in…
feal87
  • 927
  • 3
  • 11
  • 29
16
votes
4 answers

FXC : error X3501: 'main': entrypoint not found

I am following an example book called: Introduction to 3D Game Programming with DirectX 11 It is all written in VS2010. I would like to try using VS2013... It is an example project for Windows Desktop Program I have a program with the following in…
Jimmyt1988
  • 20,466
  • 41
  • 133
  • 233
16
votes
4 answers

Can't find d3dcompiler_43.dll for DirectX programming

I am trying to learn DirectX Programming. But I have hit a snag. I seem to be missing this file: d3dcompiler_43.dll I have installed (in this order): Visual Studio 2012 Windows 8 Windows Phone 8 SDK Windows 8 SDK I figured I need a DirectX SDK,…
Vaccano
  • 78,325
  • 149
  • 468
  • 850