DirectX 8 game programming entry lecture (reposted)

zhaozj2021-02-16  78

Original (day) 前 田 [homepage] http://www.cong.ac.jp/~maeda/ [e-mail] maeda@cong.ac.jp Translation (中) 尘 [homepage] http: // www .yanchen.com / [e-mail] vagra@sina.com

table of Contents

Super Rock Getting Started Lecture Full Screen Mode Programming Instance Window Mode Programming Example

Super rookie entry lecture

§01. DIRECTX 8 Installing the SDK (Software Development Kit) of DirectX 8.

§02. DIRECTX 8 Path Settings Set the path to include and lib, integrate compilation environments.

§03. Compile Direct Draw sample compiled sample programs included with SDK.

§04. Move samples to the setup method of shared program files saved in additional folder Common.

§05. The simplest Windows program outputs the program of Debug Message. Creation and operation of learning projects.

§06. Display Dialog Box (dialog box) Interface Dialog Box creates and display methods.

§07. The window creates a window that generates DirectX 8 with the message box. Briefly describe the parameters of WinMain ().

§08. Shows Hello DirectX 8! Create and depict Surface of the String String.

§09. Display true color graph image creation and depicting the SURFACE of the storage bitmap image.

§10. Playing music (MIDI file) You specify the MIDI file name directly from the program.

§11. The background image (320 * 240) is stored on the background image (320 * 240) to the SURFCE of the adaptable picture size (640 * 480). Setting transparent color (black) for text to make the background. Take a closer look at the source program.

§12. Displays the basis of bitmap image window mode with Windowed Mode (Window Mode). The drag window changes the size, the image is retracted with the picture.

§13. Background reel moves the left and right two consecutive side-by-side background images move to the rectangular area of ​​the side, the reel is displayed. Take a closer look at the source program of the window mode.

§14. Depicting circles and rectangles get buckbuffer in window mode, direct drawing circles and rectangles.

§15. Creating a private library (MyDX8.LIB) to create a private library and its header file creation method.

TOP full screen mode programming instance

§F01. Full Screen Mode (full screen mode) The sample program applied by MYDX8.LIB in full screen mode. Down the image of the same size of the picture up and down the vertical reel.

TOP window mode programming instance

§W01. Use the DRAW function to draw the sample programs applying MYDX8.LIB in "Machine Cat" window mode. To use the DRAW function to use the DRAW function to use the DrawBuffer.

§W02. Drag and drop image Displayed the image of the drag and drop. Get image size from the BMP file message.

转载请注明原文地址:https://www.9cbs.com/read-12661.html

New Post(0)