详细讲解游戏开发中的DirectX-tasy(II)(转)[@more@]
我们继续上次的话题。
上一讲中,我们介绍了一下具体的步骤。下面的清单 1.0 包含了所有的功能以及一个展示如何操作显存和键盘的例子。我们简单地将它作为一个演示。
// LISTING 1.0 - DIRECT X 5.0 GAME CONSOLE ////////////////////////////////////
// INCLUDES ///////////////////////////////////////////////////////////////////
#define WIN32_LEAN_AND_MEAN // make sure certain headers are included correctly
#include
// include the standard windows stuff #include // include the 32 bit stuff #include // include the multi media stuff // note you need winmm.lib also #include // include direct draw components #include // include all the good stuff #include #include
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8225414/viewspace-951850/
,如需转载,请注明出处,否则将追究法律责任。