Jul 16, 2009 Bloodshed Dev-C is a free C compiler and development environment for Windows operating systems. Like most C compilers, it also can be used to compile ANSI C. By installing the GLUT header and library files, it can be used to write programs that use OpenGL. Setting up DirectX under Visual C. I most likely won’t be doing DirectX development under Watcom or Borland C/C or Delphi or VisualBasic etc; so if you want such info included here, you’ll have to send it to me. Firstly, the directories must be set up so that Visual C/C can find the DirectX. Jan 25, 2015 For the Love of Physics - Walter Lewin - May 16, 2011 - Duration: 1:01:26. Lectures by Walter Lewin. They will make you ♥ Physics. Recommended for you. You'll need these before beginning this tutorial: 1. Visual Studio 2010 or later 2. The DirectX SDK June 2010 3. A basic knowledge of C 4. A burning desire to make games. Mar 24, 2020 It is time for DirectX to evolve once again. From the team that has brought PC and Console gamers the latest in graphics innovation for nearly 25 years, we are beyond pleased to bring gamers DirectX 12 Ultimate, the culmination of the best graphics technology we’ve ever introduced in an unprecedented alignment between PC and Xbox Series X.
-->If you know DirectX, you can develop a DirectX app using native C++ and HLSL to take full advantage of graphics hardware.
Use this basic tutorial to get started with DirectX app development, then use the roadmap to continue exploring DirectX.
![C++ directx example C++ directx example](/uploads/1/2/6/0/126030778/511948420.jpg)
Windows desktop app with C++ and DirectX
A Windows desktop app with DirectX is an app developed using native C++ and DirectX APIs. This model is more complex than an app written in a managed framework, but it provides greater flexibility and greater access to system resources especially graphics devices. So, it is a good model for the experienced developer.
Why develop a Windows app with DirectX?
The answer is simple: you want to make a game that is graphics- or multimedia-intensive, and can use the features that many graphics devices support. This won't be easy if you are new to game development or to Windows development and C/C++, but there's some good news: DirectX 11 is the simplest and most cohesive version of Microsoft DirectX yet. It's also the most powerful and feature-rich. If your goal is to master game development and learn the most advanced rendering techniques, then DirectX can provide the opportunity for you to do that.
That said, planning your game (or interactive, real-time app) is essential. If you are new to game development, and your game doesn't have demanding graphics requirements, consider developing it with the .NET framework instead. Also, many 'middleware' graphics and game development packages are available for Windows platforms, and some do not require significant programming skills.
If you are confident, or simply have a dream of making a game with high-fidelity graphics (or an app with complex graphics content), then read on!
In this section
Topic | Description |
---|---|
Prerequisites for developing with DirectX | When you start to develop a Windows app using DirectX, keep the prerequisites on this page in mind. This includes the technologies you need to know before you dive in. |
Get started with DirectX for Windows | Creating a DirectX game for Windows is a challenge for a new developer. Here we quickly review the concepts involved and the steps you must take to begin developing a game using DirectX and C++. |
Roadmap for Desktop DirectX apps | Here are key resources to help you get started with using DirectX and C++ to develop graphics-intensive Desktop apps, like games. |
The DirectShow samples are included with the Windows SDK. They are located under the path [SDK Root] SamplesMultimediaDirectShow.
The following table lists all of the DirectShow samples provided in the Windows SDK. For instructions on how to build the samples, refer to the documentation provided in the Windows SDK.
![Directx 11 c++ tutorial Directx 11 c++ tutorial](/uploads/1/2/6/0/126030778/176691939.gif)
If there is additional documentation for a sample, the first column of this table links to it.
Sample | Area | Description | Additional Dependencies |
---|---|---|---|
DirectShow Base Classes | Base class library | C++ classes and utility functions designed for implementing DirectShow filters. | |
AmCap Sample | Capture | Video capture application. | strmbase.lib |
DVApp Sample | Capture | Digital Video (DV) capture application. | |
PlayCap Sample | Capture | Simple capture application. | |
DMO Demo Sample | DMO | Streams audio data from a WAV file through an audio effect DMO. | DirectX SDK |
DVD Sample | DVD | Demonstrates basic DVD playback and navigation, plus advanced features such as parental level management, bookmarks, karaoke, and command synchronization. | |
InfTee Filter Sample | Filters, miscellaneous | Sample implementation of the Infinite Pin Tee filter. | strmbase.lib |
Metronome Filter Sample | Filters, miscellaneous | Shows how to implement a reference clock. | strmbase.lib |
PSI Parser Filter Sample | Filters, miscellaneous | Receives Program Specific Information (PSI) tables from an MPEG-2 transport stream and extracts program information. | strmbase.lib |
Dump Filter Sample | Filters, renderer | Writes media samples receives to a text file. | strmbase.lib |
SampVid Filter | Filters, renderer | Video renderer filter. | strmbase.lib |
Scope Filter Sample | Filters, renderer | Displays sound data as wave forms. | strmbase.lib |
Async Filter Sample | Filters, source | File reader filter that supports progressive download. | strmbase.lib |
Ball Filter Sample | Filters, source | Video source filter that produces an image of a bouncing ball. | strmbase.lib |
Push Source Filters Sample | Filters, source | Source filters that provide the following data as a video stream: A single bitmap, a set of bitmaps, a copy of the current desktop image. | strmbase.lib |
Synth Filter Sample | Filters, source | Source filter that generates audio waveforms. This sample demonstrates dynamic graph building. | strmbase.lib |
EZRGB24 Filter Sample | Filters, transform | Image processing filter. | strmbase.lib |
Gargle Filter Sample | Filters, transform | Audio effect filter. | strmbase.lib |
WavDest Filter Sample | Filters, transform | Writes an audio stream to a WAV file. | strmbase.lib |
DMOEnum Sample | Miscellaneous | Shows how to enumerate DirectX Media Objects (DMOs). | |
Mapper Sample | Miscellaneous | Shows how to use the Filter Mapper to find filters in the registry. | |
SysEnum Sample | Miscellaneous | Demonstrates using the System Device Enumerator to enumerate devices and filters. | |
CutScene Sample | Playback | Plays a video file in full-screen mode. | |
DDrawXCL Sample | Playback | Plays video in DirectDraw exclusive full-screen mode, using the IDDrawExclModeVideo interface on the Overlay Mixer filter. | |
DShowPlayer Sample | Playback | Video playback application. | |
EVRPlayer Sample | Playback | Demonstrates how to use the DirectShow EVR filter.[!Note] This sample is available in the Windows SDK for Windows Server 2008 or later. | strmbase.lib |
Texture3D9 Sample | Playback | Draws video on a Microsoft DirectX 9.0 texture surface. | strmbase.lib, DirectX SDK |
Ticker Sample | VMR-9 | Uses the VMR-9 to blend video and text. | |
VMR9Allocator Sample | VMR-9 | Implements a custom allocator-presenter for the VMR-9. | strmbase.lib |
VMR9Compositor Sample | VMR-9 | Implements a custom mixer for the VMR-9. | |
VMRPlayer Sample | VMR-9 | Uses the VMR-9 to blend one or two running videos and a static image. | |
Watermark Sample | VMR-9 | Blends a static bitmap onto a video during playback, using the VMR-9. | |
Windowless Sample | VMR-9 | Demonstrates windowless mode in the VMR-9. |
Additional Dependencies
Dev C++ Example Programs
Some of the samples link to the DirectShow base class library. To build these samples, you must first build the base class library. For more information, see DirectShow Base Classes. The base class library is required for all of the sample filters.
C++ Directx Tutorial
A few of the samples also require the DirectX SDK, in addition to the Windows SDK. To build these samples, you must install the DirectX SDK and set the %DXSDK_DIR% environment variable equal to your DirectX SDK installation path.
Many of the DirectShow samples use a set of common headers and source files located in the directrory [SDK Root]SamplesMultimediaDirectShowCommon. If you copy a sample folder to another directory, make sure to copy the Common folder as well.