HuskyNator / VertexD

OpenGL glTF renderer using DLang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VertexD is a hobby glTF Renderer/Engine, created to learn DLang & OpenGL

Requirements:

Dmd can also be installed using chocolatey using choco install dmd.

Sample

A sample/testing project can be viewed at accessory repo VertexD_sample

Use Guide

Initialization

In order to use most functionality (save for misc, json, quaternion and mat functionality), the library needs to be initialized using vdInit, initializing GLFW.

An OpenGL context also needs to be initialized by created a new Window.

Rendering

At minimum, the window needs to be assigned a World class, generally imported by the gltf_reader importer. A Camera is also required (though it can be included in the respective gltf file).

A single render step can be taken using vdStep, although vdLoop is generally preferred.

Input

Input should preferrably be handled by manually adding callbacks (KeyInput/MousebuttonInput/MousepositionInput/MousewheelInput) to the window.

Versions

(dub version modifiers to further control behaviour)

  • MultiThreadImageLoad - use multithreading to decode used gltf images.

About

OpenGL glTF renderer using DLang


Languages

Language:D 96.7%Language:GLSL 3.3%