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
11
votes
2 answers

How to compile a DirectX 11 app in MinGW

I've looked, and I can't find any material relating to using Direct3d 10 or 11 with MinGW. What do I have to do to get things working? I'm getting errors in the header files supplied by the DX SDK. And don't anyone even think of suggesting Visual…
Chris_F
  • 4,991
  • 5
  • 33
  • 63
11
votes
1 answer

What is the best practice to render sprites in DirectX 11?

I am currently trying to get used to the DirectX API and I am wondering what is the usual approach to render a sprite in DirectX 11 (e.g. for a tetris clone). Is there a simmilar interface as ID3DX10Sprite, and if not, which would be the usual…
Mario Pistrich
  • 488
  • 2
  • 5
  • 16
11
votes
2 answers

Direct2D Depth Buffer

I need to draw a list of shapes and I am using Direct2D. I get the list of shapes from a file. The list is sorted and the order of the elements inside the file represents the order these shapes will be drawn. So, if for example the file specifies…
Nick
  • 10,309
  • 21
  • 97
  • 201
11
votes
3 answers

Shader's function parameters performance

I'm trying to understand how passing parameters is implemented in shader languages. I've read several articles and documentation, but still I have some doubts. In particular I'm trying to understand the differences with a C++ function call, with a…
Heisenbug
  • 38,762
  • 28
  • 132
  • 190
11
votes
1 answer

DirectX from C#

I'm looking into various options for using DirectX in C#; ideally I want to use whatever technology is preferred by Microsoft. Non-Microsoft Technologies: SharpDX Slim DX Direct2D Manager Wrapper Microsoft Technologies: WPF DirectX 9.0 for…
Matthew Layton
  • 39,871
  • 52
  • 185
  • 313
11
votes
1 answer

C++ Drawing directly to the screen (like an overlay)

Many laptops nowadays have FN hot keys to change volume, brightness, etc. and usually display a visual cue that is rendered on the screen completely above the operating system. For new Windows 8/8.1 systems this visual even appears outside of the…
Bradley Odell
  • 1,248
  • 2
  • 15
  • 28
11
votes
2 answers

DirectX SDK vs Windows SDK: which one to use?

I have an old game engine (sort of) based on DirectX 10, which I've been planning to move to DX 11. I have also just installed Windows 8 and VS 2013 and, while trying to run this old project I've learnt that DirectX SDK has been deprecated and now…
jaho
  • 4,852
  • 6
  • 40
  • 66
11
votes
5 answers

Faster method of reading screen pixel in Python than PIL?

Currently I'm using a pixel reader via AutoItv3 to perform some actions in a program that is running direct X; A game. Right now the program works fine but as an exercise I've been rewriting it in python. Right now I can do: import ImageGrab #…
ThantiK
  • 1,582
  • 4
  • 17
  • 31
11
votes
5 answers

What are some good resources on 2D game engine design?

I'm messing around with 2D game development using C++ and DirectX in my spare time. I'm finding that the enterprisey problem domain modeling approach doesn't help as much as I'd like ;) I'm more or less looking for a "best practices" equivalent to…
Gabriel Isenberg
  • 25,869
  • 4
  • 37
  • 58
11
votes
3 answers

Using DirectX with Visual Studio 2012

I have some DirectX projects written in C# that I need to run via Visual Studio 2012 specifically. All of these projects use the namespace called, "Microsoft.DirectX". Microsoft Windows SDK installed completely and successfully on my Windows 8…
Radek Wyroslak
  • 740
  • 4
  • 7
  • 19
11
votes
2 answers

Are triangles a gpu restriction or are there other rendering pathways?

To preface this question, I have a competent understanding of OpenGL and the maths behind it, and while I have never touched anything related to DirectX I imagine the concepts are similar. There is plenty of information around about why triangles…
Ephemera
  • 8,672
  • 8
  • 44
  • 84
11
votes
1 answer

How do GPUs support both OpenGL and DirectX API execution?

Im trying to understand how OpenGL and DirectX work with the graphic card. If i write a program in OpenGL that do a triangle, and another one in DirectX that do the same thing, what exactly happen to the GPU side? Does when we run the program, every…
user1115057
  • 1,815
  • 2
  • 18
  • 20
10
votes
1 answer

Color conversion from DXGI_FORMAT_B8G8R8A8_UNORM to NV12 in GPU using DirectX11 pixel shaders

I'm working on a code to capture the desktop using Desktop duplication and encode the same to h264 using Intel hardwareMFT. The encoder only accepts NV12 format as input. I have got a DXGI_FORMAT_B8G8R8A8_UNORM to NV12…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
10
votes
2 answers

Intel graphics hardware H264 MFT ProcessInput call fails after feeding few input samples, the same works fine with Nvidia hardware MFT

I'm capturing the desktop using DesktopDuplication API and converting the samples from RGBA to NV12 in GPU and feeding the same to MediaFoundation hardware H264 MFT. This works fine with Nvidia graphics, and also with software encoders but fails…
10
votes
3 answers

Getting green screen in ffplay: Streaming desktop (DirectX surface) as H264 video over RTP stream using Live555

I'm trying to stream the desktop(DirectX surface in NV12 format) as H264 video over RTP stream using Live555 & Windows media foundation's hardware encoder on Windows10, and expecting it to be rendered by ffplay (ffmpeg 4.2). But only getting a green…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34