首页 > 其他分享 >Ogre默认资源代码中加载

Ogre默认资源代码中加载

时间:2024-11-09 09:19:47浏览次数:1  
标签:OGRE ResourceGroupManager QString getSingleton 默认 加载 DIR Ogre

	//Ogre Resources
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/Main", "FileSystem", "OgreInternal");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/RTShaderLib", "FileSystem", "OgreInternal");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/Terrain", "FileSystem", "OgreInternal");

	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/PBR", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/PBR/filament", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/GLSL", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/GLSL120", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/GLSL150", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/GLSL400", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/GLSLES", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/SPIRV", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/Cg", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/HLSL", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/programs/HLSL_Cg", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/scripts", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/textures", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/textures/terrain", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/models", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/particle", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/DeferredShadingMedia", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/DeferredShadingMedia/DeferredShading/post", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/PCZAppMedia", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/scripts/SSAO", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/materials/textures/SSAO", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/volumeTerrain", "FileSystem", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/CSMShadows", "FileSystem", "General");

	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/cubemap.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/cubemapsJS.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/dragon.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/fresneldemo.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/ogredance.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/Sinbad.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/skybox.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/volumeTerrain/volumeTerrainBig.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/DamagedHelmet.zip", "Zip", "General");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_PLUGIN_DIR).toStdString() + "/../Media/packs/filament_shaders.zip", "Zip", "General");

	//Your Resources
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_MEDIA_DIR).toStdString() + "/models", "FileSystem");
	Ogre::ResourceGroupManager::getSingleton().addResourceLocation(QString(OGRE_MEDIA_DIR).toStdString() + "/materials/scripts", "FileSystem");
   	Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups();

标签:OGRE,ResourceGroupManager,QString,getSingleton,默认,加载,DIR,Ogre
From: https://www.cnblogs.com/zach0812/p/18536306

相关文章

  • SVGA / MP4 加载预览
    //svga展示functionfn_svgaPlay(item){////mp4//item={//"gift_id":11078,//"img":"https://image.whoisamy.shop/attachment/2024/06/27/8755eae77474c3f52f0c95aec30bb77e6b5c1f9f.png",//......
  • 深入理解Java虚拟机 --- 类加载机制
    类的生命周期类的生命周期:加载→验证→准备→解析→初始化→使用→卸载类加载的时机关于在什么情况下需要需要开始类加载过程的第一个阶段"加载",虚拟机并没有进行强制约束,这点交给虚拟机的具体实现来自由把握。但严格规定了有且只有六种情况必须立即对类进行"初始化":(字节码......
  • JavaLin第六章:JavaLin的访问管理和默认响应
    文章目录前言一、JavaLin的访问管理二、JavaLin的默认响应总结前言最近忙起来了,就没有更新了,实在不不好意思,最近会进行javalin的陆陆续续的更新,希望大家支持。在Java里面有很多框架,其中权限管理是一个非常重要的功能实现,对于每个用户设定该用户的角色,对应相应用户......
  • Docker修改默认网段
    原文网址:https://blog.csdn.net/qq_30381077/article/details/126928770 一般docker默认的网络端是172.17.0.1的网段,在生产环境中可能会有办公端IP端冲突 停止所有容器优先推荐down掉所有dockerrm$(dockerps-a-q)删除docker 网络docker networklist#my-ne......
  • Mybatis 延迟加载的实现原理
    一、MyBatis延迟加载的支持1.延迟加载的配置在MyBatis中,延迟加载可以通过全局配置和局部配置来实现:全局配置:可以在MyBatis的配置文件中进行设置,控制全局的延迟加载行为。<configuration><settings><settingname="lazyLoadingEnabled"value="true......
  • 默认 iOS 设置使已锁定的 iPhone 容易受到攻击
    苹果威胁研究的八个要点苹果手机间谍软件问题日益严重了解Apple苹果的设备和服务器基础模型发布尽管人们普遍认为锁定的iPhone是安全的,但iOS中的默认设置可能会让用户面临严重的隐私和安全风险。安全研究员Lambros通过PenTestPartners透露,锁定的iPhone上的默......
  • Vue3 - 详细实现虚拟列表前端虚拟滚动列表解决方案,vue3长列表优化之虚拟列表,解决列表
    前言Vue2版本,请访问这篇文章在vue3项目开发中,详解实现虚拟列表高度不固定(不定高)且复杂含有图片视频等复杂虚拟列表教程,决列表每项高度不确定及img图像或视频的加载方案,利用缓冲区技术解决用户浏览时渲染不及时列表闪烁白屏/列表加载闪屏,解vue3实现虚拟列表优化大......
  • 深入解析 WKWebView 的 didFinish 回调时机:页面加载与异步操作的处理
    在iOS开发中,我们经常会用WKWebView来加载和展示H5页面。通常,开发者会在WKWebView的didFinish方法中处理页面加载完成后的逻辑,例如更新UI或执行后续操作。然而,didFinish的触发时机并不总是如我们所期待,它并不会等待所有异步操作(如AJAX请求、图片加载等)完成后再执行......
  • IntersectionObserver实现H5表格触底加载
    <!DOCTYPEhtml><htmllang="en"><head><metacharset="UTF-8"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><title>Document</title&g......
  • 十三 MyBatis的高级映射及延迟加载
    十三、MyBatis的高级映射及延迟加载模块名:mybatis-009-advanced-mapping打包方式:jar依赖:mybatis依赖、mysql驱动依赖、junit依赖、logback依赖配置文件:mybatis-config.xml、logback.xml、jdbc.properties拷贝工具类:SqlSessionUtil准备数据库表:一个班级对应多个学生。......