This is from a presentation I did today at UCLA, I will put together a video to explain the whole thing.
This is just a presentation that depends heavily on the material at theseURL links:
Windows 8 and VS 2012:
Windows 8.1 and VS 2013 RC:
|The DirectX Shooter game sample uses this architecture for it’s game engine.
It is a simple process and one that you could learn, then memorize and never use again.
But it would a basis of what you would create.
(Click on image to enlarge it)
Make to scroll down to see all of the discussion
Audio.cpp/.hDefines the audio object used to mix and play music.
MediaReader.cpp/.hProvides methods for reading the PCM audio streams.
SoundEffect.cpp/.hProvides methods for the mixing and playback of sound effects.
This is not included in the FruitBurst example but is used in the MarbleMaze and Simple Shooter game
• Provides the calculations for the animation of the moving targets and pillar obstacles in the game.
• Provides an implementation of a 3-D camera view of the scene, and the 2-D projection of it.
• Defines a specific implementation of the GameObject class for cylinders.
• This includes a method that determines the point of intersection between a sphere (the ammo) and cylinder.
• Defines a specific implementation of the GameObject class for a rectangular flat surface (the "face").
• This includes a method for determining the point of intersection between a sphere (ammo) and the surface.
• The class is used for targets.GameConstants.hDefines a number of common constants used throughout the game.
• Defines the behaviors of the in-game object graphic primitives, including placement, movement, and collisions.
• Defines a specific implementation of the GameObject class for spheres. This includes a method for determining the point of intersection between two spheres. The class is used to represent the ammunition in the game.
• Defines a specific implementation of the MeshObject class used to create the mesh for cylinder game objects.
• Defines a specific implementation of the MeshObject class used to create the mesh for rectangular target game objects.
• Defines the general class for graphics mesh primitives. These primitives are defined by a D3D11 vertex buffer and index buffer, as well as the virtual method to render these primitives.
• Defines a specific implementation of the MeshObject class used to create the mesh for spherical ammo game objects.
• Defines a specific implementation of the MeshObject class used to create the meshes for the world environment.
• Defines an abstract class containing information about game levels.
• Defines the attributes and objectives for each game's six levels. This includes the time limit for completing the level, as well as the animation, timing, position, and total number of the targets and obstacles in the level.
• Defines the D3D 11 Constant buffers used to control the graphics rendering.
• Provides a basic renderer that includes the Direct3D device and swap chain, and the Direct2D factory and device.
• It includes handling stereo and pre-rotation of swap chains for better rendering performance. This class is important!
• Defines the Heads Up display for current scoring.
• Defines the 2D overlay that contains the heads-up display elements for the level instructions and score info.
• Defines a specific implementation of DirectXBase tailored to the specific needs of this game, including methods for asynchronous creation of game and level device-specific resources.
• Defines the material properties of objects. This includes the object color, specular highlight color, textures and shaders used to render the object.
• Provides helper code that creates the projection matrices for the 3-D stereoscopic projection. These methods are called in Camera.cpp.
• Defines the methods used to create the concentric circle bitmaps for the targets.
• Defines the Direct3D 11 constant buffers used by HLSL to control graphics rendering. This file is paired with ConstantBuffers.h.
• Contains the HLSL code for the common pixel shader used for most game object rendering. It includes per pixel lighting for specular highlights.
• Contains the HLSL code for the pixel shader used for the game world objects. It does much simpler shading and doesn't include any specular light effects.
• Contains the HLSL code for the common vertex shader used for most game object rendering. It's paired with PixelShader.hlsl
• Contains the HLSL code for the vertex shader used for the game world objects. It does much simpler shading and lighting. It's paired with PixelShaderFlat.hlsl
• Provides methods for loading assets, such as textures, from disk.BasicMath.h
• Defines some simple types that represent vectors and matrices, and the mathematical operations that can be performed on them. This sample uses DirectXMath instead of these math functions.
Defines some simple types that represent vectors and matrices, and the mathematical operations that can be performed on them. This sample uses DirectXMath instead of these math functions.
• Provides methods for reading and writing data synchronously and asynchronously.BasicShapes.hDefines a set of basic 3-D graphic primitives, such as cubes and spheres.
Defines a set of basic 3-D graphic primitives, such as cubes and spheres.
• Provides a method for loading a DDS texture and creating a Direct3D 11 runtime resource for it.
• Defines an exception handling method used in the Windows Store DirectX samples.
• Defines a high-resolution game clock object.
• Provides a set of methods for saving and loading various scalar and complex type values to and from a configured storage location.
To use pch.h you would add your header files there and make sure to include pch.h in each of your source (cpp) files