ogre 学习笔记 - Day 0
OGRE : Object-Oriented Graphics Rendering Engine
从名称可以得出,OGRE是一个渲染引擎
下载地址 https://www.ogre3d.org/
@H_404_12@编译
@H_404_12@工具 cmake-gui, vs2019, vscode
Configure
configure时发现ogre会自动从github下载/编译依赖项,github速度有可能很慢,导致失败。
使用镜像 https://hub.fastgit.org 替代 https://github.com 。
用vscode打开项目工程目录,将所有的 https://github.com 替换为 https://hub.fastgit.org
Generate
Open Project
生成解决方案
出现错误:检测到“_IteraTOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值…(pugixml.obj)
打开项目 build 路径,…/pugixml-1.10/pugixml.sln, 使用Debug编译,编译 pugixml, 然后编译 INSTALL,关闭项目
重新生成Ogre项目
运行 Samplebrowser
在线文档
@H_404_12@打开Ogre文件夹,查看文件结构,同时查看相关文档
https://ogrecave.github.io/ogre/api/latest/modules.html
之后,打开 OgreMain 文件夹,归纳整理一下所有的文件。
Thread, Animation, Archive, billboard, BlendMode, Bone, Camera, Compositor,
Controller, Entity,FileSystem,GpuProgram, HardwareBuffer, Material, Math, Mesh, Node, Particle, Pass, Patch, Plane, Renderable, Resource, Scene, Script, Shadow,Skeleton 等。
都是场景/ 渲染相关,但是,没有 UI。
从上面的分析,可以得到,UI属于Component/Overlay/OgreImGuiLayer
从上面这些信息,可以得出,
Ogre使用了SDL2,
Ogre支持的平台:Windows, Android, iOS, MacOS
渲染API:D3D9, D3D11, GL, GLES2,Metal
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。