天地之灵学习小组
我们学习小组的OpenGL学习笔记 大家一定要互相折磨呀~~
posts - 150,  comments - 156,  trackbacks - 0
#include "ExampleApplication.h"
class MyApplication : public ExampleApplication
{
public:
MyApplication() {
}
~MyApplication() {  }
protected:
// Just override the mandatory create scene method
void createScene(void)
{
}
};
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
#else
int main(int argc, char **argv)
#endif
{
  // Create application object
  MyApplication  app;
  try {
   app.go();
  } catch( Exception& e ) {
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
   MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
#else
   std::cerr << "An exception has occured: " << e.getFullDescription();
#endif
  }
  return 0;
}
#ifdef __cplusplus
}
#endif

运行结果:





 

FeedBack:
# re: 11.24 第一个ogre程序
2008-11-24 20:50 | 正牌的天地之灵和他的徒儿们肖赫_王婷婷_王冠_郑燚_孙婷
此图片来自qq空间,未经允许不可引用……  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理



<2008年11月>
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

常用链接

留言簿(6)

随笔分类(149)

随笔档案(150)

同道中人

搜索

  •  

积分与排名

  • 积分 - 43779
  • 排名 - 486

最新随笔

最新评论

阅读排行榜

评论排行榜