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

Physicc/Light: Lightweight Game Engine written in C++

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

开源软件名称:

Physicc/Light

开源软件地址:

https://github.com/Physicc/Light

开源编程语言:

C++ 90.5%

开源软件介绍:

Light

License: MIT Windows OSX Linux GCC Linux Clang

Lightweight Game Engine written in C++17


Light is a lightweight game engine written in C++17. It is currently in development and is not yet ready for use. We are a small team consisting of students from Indian Institute of Technology Bombay. We are working on this project to primarily learn about game engine development, and to document our process so that others can learn from our mistakes.

Modules

  • Light: The rendering backbone of the engine
    • Wraps around the OpenGL API
  • LightFramework: The main game engine framework
    • Input
    • Windowing
    • ECS
    • GUI
  • Physicc: The physics engine we are building from scratch
    • Rigid Body Physics
  • Editor: A level editor built using LightFramework

File Structure

Each module has its own folder.

  • include contains the header files
  • src contains the source files
  • libs contains the external library sources

There is a shared folder which contains all the common libraries and files to be shared amongst the modules.

Supported Platforms

We aim to support as the most common desktop platforms

  • Windows 10/11
  • Ubuntu 18
  • Ubuntu 20
  • OSX 10
  • OSX 11

Prerequisites

Windows

  • mingw-w64
  • CMake

OR

  • Visual Studio 2019
  • CMake

Ubuntu

  • GCC (>= 8) or Clang (>= 9)
  • X11
  • CMake

You can install X11 by running

sudo apt install xorg-dev

OSX

  • XCode (>= 12)
  • CMake

Build and Run

VSCode

  • Recursively clone the git module:

     git clone --branch development --single-branch --recursive https://github.com/Physicc/Light

    This will clone only the development branch of the repository. This is what you probably want.

  • Get the CMake tools extension

  • Select CMake source location as the repository root folder if prompted

  • Select kit

    • Select GCC if you are using mingw-w64 as your compiler
    • Select Visual Studio 2019 if you are using MSVC (from VS2019) as your compiler
  • Select build target as Editor

  • Press the Build button

    image

  • Now press the Run button

    image

Terminal

  • Recursively clone the git module:

     git clone --branch development --single-branch --recursive https://github.com/Physicc/Light

    This will clone only the development branch of the repository. This is what you probably want.

  • Change into the repository directory

     cd Light
  • Execute the following command to generate the build configuration

     cmake -Bbuild

    You can also specify the build generator if you have more than one via the -G flag. The generators we support are MinGW Makefiles, Unix Makefiles, Visual Studio 16 2019, Xcode

    e.g.

     cmake -Bbuild -G"Unix Makefiles"
  • Build the executable using the following command

     cmake --build build

    On Linux, you can also append -- -j<num> to the end of the above command, to run the build on <num> cores.

    eg.

     cmake --build build -- -j4	# for 4 cores
  • If you are on Linux and do not have a dedicated GPU, run the following command

     export MESA_GL_VERSION_OVERRIDE=3.3
  • Change into the build directory (This should be the current working directory)

     cd build
  • Run the executable

     ./Editor

Visual Studio 2019

  • You can if you wish to, use VS2019 as your IDE instead of VS Code on Windows.

  • Recursively clone the git module:

     git clone --branch development --single-branch --recursive https://github.com/Physicc/Light

    This will clone only the development branch of the repository. This is what you probably want.

  • Change into the repository directory

     cd Light
  • Execute the following command to generate the build configuration

     cmake -Bbuild -G"Visual Studio 16 2019"
  • Now you can open the solution file generated in Visual Studio 2019.

  • You will need to regenerate the solution file every time you modify the source code.

  • We currently do not provide any additional support if you wish to use Visual Studio as your IDE

Documentation

Link to documentation (may be outdated)

Contributing

If you want to contribute to this project, please drop an email to Rwitaban

You can send pull requests, but please follow the guidelines on CONTRIBUTING.md

Attributions




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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