tailieunhanh - C for game programmers phần 8

cùng với những thách thức cụ thể để các nền tảng khác nhau như máy tính hoặc máy chơi game. Các kỹ thuật trình bày áp dụng cho tất cả các khía cạnh của chương trình trò chơi, bao gồm cả đồ họa, vật lý và AI. C + + cho lập trình gamenhư lập trình trò chơi cũng sẽ được hưởng lợi từ những ý tưởng và kỹ thuật được bảo hiểm. | Chapter 11 Plug-Ins 287 function which needs to be loaded and executed only once and avoids the complication of exporting the full plug-in class. After the actual plugin objects have been created through the factory it can be used almost as if it were a normal object. Conclusion In this chapter we covered the exttemely useful technique of plug-ins. Plug-ins allow us to extend our programs without having to modify the original source code and having to recompile everything again. We can also use them to extend other people s programs such as off-the-shelf art tools. We saw how we could architect our program to support the use of plug-ins how to organize the different plug-ins how to manage them and how to load them on a Windows platform. Plug-ins are still possible on other platforms that do not support DLLs if we use other methods to load code dynamically. These techniques are illustrated with the sample code for a working plug-in manager that can be found on the CD-ROM Chapter 11. Plugins . Finally we saw how plug-ins are used in the real world and what some of their advantages and drawbacks are. SUGGESTED Reading For such a useful technique there is surprisingly little published material on plug-ins. Some of the more detailed plug-in architecture descriptions come from the documentation of some of the major software packages that are intended to be extended through plug-ins such as Discreet s 3D Studio Max Adobe Photoshop and others. Scanning through the API documentation for those packages can reveal many interesting details of real-world applications of plug-ins. What follows is a really good reference for any Windows-system programming topic. It has some excellent chapters on DLLs. Richter Jeffrey Advanced Windows. 3rd ed Microsoft Press 1997. Team LRN CHAPTER 12 RUNTIME TYPE INFORMATION IN THIS CHAPTER Working Without RTTI Uses and Abuses of RTTI Standard C RTTI Custom RTTI System 289 Team .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã 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.