摘要:
这一节练习一下手动创建实体,用到了对象(ManualObject) 第一,依然是模板#include "ExampleApplication.h"class Example1 : public ExampleApplication{public: void createScene() { }protected:private:};#include INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT ){ Example1 app; app.go(); ret... 阅读全文
摘要:
BSP(binary-space partitioning) Scene Manager(二叉空间分割)场景管理器比较适合用于室内场景。第一,添加框架代码如下 1 #include "ExampleApplication.h" 2 class Example1 : public ExampleApplication 3 { 4 public: 5 void createScene() 6 { 7 } 8 protected: 9 private:10 };11 12 #include 13 INT WINAPI WinMain( HINSTANCE hInst... 阅读全文