开元食味
德国频道
查看: 1593|回复: 0
打印 上一主题 下一主题

EZT

[复制链接]
1#
发表于 23.10.2006 08:25:31 | 只看该作者
即时机票
c++   Beispiele<br /><br />// test01.cpp : Definiert den Einstiegspunkt für die Anwendung.<br />//<br /><br />#include &quot;stdafx.h&quot;<br />#include &quot;test01.h&quot;<br />#define MAX_LOADSTRING 100<br /><br />#include &lt;Vision.hpp&gt;<br />#include &lt;VisSampleApp.hpp&gt;<br /><br />// Declare a module to put all our actions into<br />DECLARE_THIS_MODULE(g_sampleModule, MAKE_VERSION(1,0),&quot;Console Sample&quot;, &quot;Trinigy&quot;, &quot;This module contains some sample actions&quot;);<br /><br />int APIENTRY WinMain(HINSTANCE hInstance,<br />                     HINSTANCE hPrevInstance,<br />                     LPTSTR    lpCmdLine,<br />                     int       nCmdShow)<br />{<br />        // create and init our application<br />        VisSampleAppPtr spApp = new VisSampleApp();<br />        if (&#33;spApp-&gt;InitSample(&quot;landscape&quot;))<br />                return -1;<br /><br />        <br /><br />        // limit debug messages to 15 on screen<br />        Vision::Message.SetMaxNum(15);<br /><br />        // resources directory<br />        Vision::File.AddDataDirectory(&quot;..\\res&quot;);<br />        Vision::File.AddDataDirectory(&quot;..\\res\\basedata&quot;);<br /><br />        // load some example map<br />        Vision:oadWorld(&quot;landscape_simple&quot;);<br /><br />        //Enables the Mouse camara<br />        spApp-&gt;EnableMouseCamera(true);<br /><br />        // register the action module with the vision engine action manager<br />        // only after that the action becomes available in the console<br />        VActionManager * pManager = Vision::GetActionManager();<br />        pManager-&gt;RegisterModule (&g_sampleModule);<br /><br />        // game loop<br />        while (spApp-&gt;Run())<br />        {        <br />                // Klick the button Q to save a Screenshot<br />                if(Vision::Key.IsPressed(VGLK_Q))<br />                        Vision::Game.SaveScreenShot();<br />        }<br /><br />        // deinit our application<br />        spApp-&gt;DeInitSample();<br />        return 0;<br />}

Aufgabe 1 EZT.zip

89.85 KB, 下载次数: 95

回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

站点信息

站点统计| 举报| Archiver| 手机版| 小黑屋

Powered by Discuz! X3.2 © 2001-2014 Comsenz Inc.

GMT+1, 20.4.2024 02:12

关于我们|Apps

() 开元网

快速回复 返回顶部 返回列表