Beginning Game Programming (phần 3)

Tham khảo tài liệu 'beginning game programming (phần 3)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 80 Chapter 5 Your First DirectX Graphics Program If you are eager to get started with 3D graphics you can skip ahead to Part III of the book but I recommend that you stay here and learn the basics first. Before you start loading 3D objects and rendering animated characters on the screen you need to know the basics of DirectX. In particular the game framework in Chapter 9 is used in all future chapters so it s important to understand how the game library works. Much of the game framework is readied in this very chapter and you will add to it over the next several chapters to make DirectX programming easier. Here is what you will learn in this chapter How to initialize the Direct3D object. How to create a device for accessing the video display. How to create a back buffer for flicker-free graphics. How to run a Direct3D program in a window. How to run a Direct3D program in fullscreen mode. Getting Started with Direct3D To use Direct3D or any other component of DirectX you must be somewhat familiar with how to use headers and library files standard fare in C programming because DirectX function calls are stored in header files and the precompiled DirectX functions are stored in libs. For instance the Direct3D functions are stored in and the way your program sees Direct3D is by including the header file using the include directive in your source code files. I will assume that you have already installed the DirectX 9 Software Development Kit SDK for Visual C or the separate version of DX9 for Dev-C . If you have not installed one of these yet you should do that before reading any further. The DirectX 9 SDK is located on the CD-ROM that accompanies this book in the DirectX folder while the Dev-C version is located in dev-cpp. When given the DirectX Runtime Support option you want to install the debug version for development. Okay ready to go Getting Started with Direct3D 81 The Direct3D Interfaces In order to write a program that uses Direct3D you

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.