• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Silverlan/pragma: Repository for the pragma game engine.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Silverlan/pragma

开源软件地址:

https://github.com/Silverlan/pragma

开源编程语言:

C++ 83.9%

开源软件介绍:

Build Windows

What is this?

This is the repository for the Pragma Game Engine. For more information, visit the official website: https://pragma-engine.com/

What platforms and hardware does it work on?

  • 64-Bit Windows (8.1, 10, 11)
  • Graphics card: GTX 1050 Ti or newer
  • Memory: 4 GiB RAM or more

What are Pragma's requirements?

If you want to use Vulkan, you'll also need these:

SPIRV-Tools has to be located in %VULKAN_SDK%/spirv-tools, and SPIRV-Headers in %VULKAN_SDK%/spirv-tools/external/spirv-headers.

Build Instructions (Windows)

Before building Pragma, you have to build several third-party libraries by hand first:

Building Boost

Build zlib 1.2.8, then open the Windows command line and navigate to the boost directory, then execute the following commands:

bootstrap.bat
b2 toolset=msvc-14.2 address-model=64 stage variant=release link=shared runtime-link=shared -j3 > build.log
b2 toolset=msvc-14.2 address-model=64 stage variant=release link=static runtime-link=shared -j3 > build.log

set ZLIB_SOURCE="E:/zlib-1.2.8"
set ZLIB_INCLUDE="E:/zlib-1.2.8"
set ZLIB_LIBPATH="E:/zlib-1.2.8/build/RelWithDebInfo"
b2 toolset=msvc-14.2 address-model=64 stage variant=release link=shared runtime-link=shared --with-iostreams -sZLIB_SOURCE=%ZLIB_SOURCE% -sZLIB_INCLUDE=%ZLIB_INCLUDE% -sZLIB_LIBPATH=%ZLIB_LIBPATH%
b2 toolset=msvc-14.2 address-model=64 stage variant=release link=static runtime-link=shared --with-iostreams -sZLIB_SOURCE=%ZLIB_SOURCE% -sZLIB_INCLUDE=%ZLIB_INCLUDE% -sZLIB_LIBPATH=%ZLIB_LIBPATH%

(Change ZLIB_SOURCE, ZLIB_INCLUDE and ZLIB_LIBPATH to your zlib path.)

Building LuaJIT

  • Open Visual Studio command prompt (Available from the menu bar under "Tools -> Visual Studio Command Prompt")
  • Go to %PROGRAMFILES(X86)%/Microsoft Visual Studio/2019/Community/VC/Auxiliary/Build (or the equivalent directory for your Visual Studio version)
  • Run vcvarsall.bat x64
  • Go to Pragma/third_party_libs/luajit/src
  • Run msvcbuild.bat
  1. Run configure with CMake in the Pragma root directory
  2. Set the following variables:
  • DEPENDENCY_BOOST_INCLUDE: Boost include directory
  • DEPENDENCY_GEOMETRIC_TOOLS_INCLUDE: GTE include directory
  • DEPENDENCY_BOOST_CHRONO_LIBRARY: Path to boost chrono library (boost_chrono-vc142-mt-x64-1_72.lib)
  • DEPENDENCY_BOOST_DATE_TIME_LIBRARY: Path to boost date-time library (boost_date_time-vc142-mt-x64-1_72.lib)
  • DEPENDENCY_BOOST_FILESYSTEM_LIBRARY: Path to boost filesystem library (boost_filesystem-vc142-mt-x64-1_72.lib)
  • DEPENDENCY_BOOST_IOSTREAMS_LIBRARY: Path to boost iostreams library (boost_iostreams-vc142-mt-x64-1_72.lib)
  • DEPENDENCY_BOOST_REGEX_LIBRARY: Path to boost regex library (boost_regex-vc142-mt-x64-1_72.lib)
  • DEPENDENCY_BOOST_SYSTEM_LIBRARY: Path to boost system library (boost_system-vc142-mt-x64-1_72.lib)
  • DEPENDENCY_BOOST_THREAD_LIBRARY: Path to boost thread library (boost_thread-vc142-mt-x64-1_72.lib)
  1. Run configure again, then generate and open the solution
  2. Build Pragma

The first time you should build Pragma using the core/pragma-install-full target, which is equal to core/pragma-install, but also copies all of the base assets required to run Pragma to the install directory (default is install). For all subsequent builds, you can use core/pragma-install instead, which includes all of the core libraries, required dependencies and the OpenGL module for Pragma. All available module builds will automatically get installed every time you use the core/pragma-install target.

Pragma uses OpenGL by default if the Vulkan module has not been built, however Pragma is optimized for Vulkan. To use the Vulkan renderer:

  • Make sure the VulkanSDK is installed
  • Build modules/pr_prosper_vulkan
  • Build core/pragma-install

Vulkan will automatically be used by default if available. You can also force a particular renderer by adding -graphics_api opengl or -graphics_api vulkan to the launch options respectively.

Build Instructions (Linux)

TODO

Modules

There are various optional modules available for Pragma, some of which are already included with this repository, and some of which can be found online:

To install a module, check it out into Pragma/modules, re-configure and re-generate the solution using CMake, then build the module and then build core/pragma-install to install it.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap