TAILIEUCHUNG - .NET Framework Solution In Search of the Lost Win32 API phần 10

và những người mà thường có thể trình bày sự xuất hiện có thể chấp nhận được bằng cách sử dụng một tập tin GIF hoạt hình. DirectX là một công nghệ mạnh mẽ mà bạn có thể sử dụng để tạo ra mọi thứ từ một bài thuyết trình kinh doanh đơn giản là một trò chơi cao cấp, tuy nhiên, | Using a Mesh Example Using a Mesh Example Now that you ve seen how a mesh is constructed and how to test the content of an X file it s time to see what you ve learned in action. The example in this section performs the simple task of loading an X file and rendering it. The example code will demonstrate that some of the DirectX code is the same as you ve used in the past but other code is different because of the managed environment. In fact this example contains a few surprises that you might not have expected. Note A lot of developers were surprised to hear that there are some problems getting DirectX to run on some machines that have AMD processors installed. It turns out that the DrawIndexedPrimitive function can cause DirectX to stop responding on these machines. This problem was first reported in The Inquirer http article 4474 . Later Microsoft uploaded a Knowledge Base article to explain the problem http search scid kb en-us Q321178 . The Knowledge Base article also includes a link where you can download a patch to fix this problem. Initializing the Application Let s begin with application initialization. Listing contains the constructor for the form. You ll find this code in the Chapter 16 C MeshView and Chapter 16 VB MeshView folders of the CD. Listing Mesh Example Initialization DirectX objects. private DirectX8 DX8 DirectX 8 object. private Direct3D8 D3D8 Direct 3D object. private Direct3DDevice8 Device Display device. public frmMain D3DDISPLAYMODE Mode Display mode. D3DPRESENT_PARAMETERS Params Display parameters. Required for Windows Form Designer support InitializeComponent Initialize the DirectX objects. DX8 new DirectX8Class D3D8 Create a device to use for drawing. Begin by obtaining the current display mode. Set the display parameters. Finally create the device. Mode new D3DDISPLAYMODE int ref Mode Params .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.