项目作者: zacharycarter

项目描述 :
3D Game Engine
高级语言: Assembly
项目地址: git://github.com/zacharycarter/frag-old.git
创建时间: 2020-08-03T05:37:18Z
项目社区:https://github.com/zacharycarter/frag-old

开源协议:MIT License

下载


FRAG

FRAG is a WIP game engine written in the Nim programming language.

The current focus of development is on the 3D Vulkan renderer and tooling.

FRAG is being developed alongside a science-fiction roguelike game, so feature development will be limited in scope.

This document will be updated as new capabilities and examples are added to the project.

Platforms

FRAG is being developed on a MacBook Pro, so macOS will be the first supported platform. Windows and Linux support will follow, in that order.

Compiler Tested With Operating System
clang - Apple clang version 11.0.0 (clang-1100.0.33.17) macOS 10.14.6

Installation

Use the Nimble package manager to install FRAG.

  1. git clone git@github.com:zacharycarter/frag.git && cd frag
  2. nimble deps
  3. nimble install
  4. frag

Usage

FRAG is still in early development, and doesn’t do much yet.

  1. import frag
  2. proc init() =
  3. echo "initializing app"
  4. proc frame() =
  5. discard
  6. proc event() =
  7. discard
  8. proc cleanup() =
  9. echo "cleaning up"
  10. proc main() =
  11. var appDesc = AppDesc(
  12. initCb: init,
  13. frameCb: frame,
  14. eventCb: event,
  15. cleanupCb: cleanup,
  16. )
  17. run(appDesc)
  18. when isMainModule:
  19. main()

Features

  • Auto-generated bindings for volk, Vulkan Memory Allocator and GLFW via Nimterop
  • Vulkan renderer (WIP)
  • Direct3D 12 renderer (planned)
  • Metal renderer (planned)

Third party dependencies

  • Nimterop: A Nim package that aims to make C/C++ interop seamless
  • volk: Meta-loader for Vulkan
  • Vulkan Memory Allocator: Easy to integrate Vulkan memory allocation library
  • GLFW: Multi-platform library for OpenGL, OpenGL ES and Vulkan application development

License (MIT)



  1. Copyright (c) 2020 Zachary Carter
  2. Permission is hereby granted, free of charge, to any person obtaining a copy
  3. of this software and associated documentation files (the "Software"), to deal
  4. in the Software without restriction, including without limitation the rights
  5. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  6. copies of the Software, and to permit persons to whom the Software is
  7. furnished to do so, subject to the following conditions:
  8. The above copyright notice and this permission notice shall be included in all
  9. copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  14. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  15. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  16. SOFTWARE.