Giter VIP home page Giter VIP logo

dirrlicht's Introduction

Build Status Stories in Ready Gitter chat

DIrrlicht - D Bindings of Irrlicht Engine

Details

DIrrlicht is the D Bindings and semi-port of Irrlicht 3D Graphics Engine which makes it possible to use Irrlicht Engine from D programming language. It copies the API of Irrlicht Engine, but in a way that makes sense in D.

There are some notable changes in API, mostly due to the library being designed for D. See this.

Status

It's in very early beta stage. Several functions still aren't wrapped. It is subject to API changes.

Checkout the Road Map for the list of things that still needs to be done.

Installation

Clone the repository:

$ git clone git://github.com/Artistic-Games/DIrrlicht

DIrrlicht relies on CIrrlicht. Fortunately, it is already included as a submodule, just make sure to update submodules:

$ cd DIrrlicht
$ git submodule update --init

Note however that Irrlicht isn't provided with CIrrlicht, so you have to get that and compile shared library of CIrrlicht.

Once you compile shared library of CIrrlicht, you can add the dub package locally:

$ dub add-local .

Usage

As DIrrlicht is based on Irrlicht, it tries to separate the implementation from user. You aren't supposed to directly instantiate several classes, but you access them through different managers. Following is the short example that can be used to test DIrrlicht, it shows the simple window with a black background that can be minimized, resized and closed:


import dirrlicht.all;

void main() {
    auto device = createDevice(DriverType.OpenGL, dimension2du(800,600));
    device.windowCaption = "DIrrlicht Test!";
    device.resizable = true;
    
    auto driver = device.videoDriver;
    while(device.run()) {
        driver.beginScene();
        driver.endScene();
    }
}

See wiki for more usage and tutorials.

Contributing

DIrrlicht at most time aims to be a community driven project. It needs your help to grow up. Any kind of help will be fully appreciated. Feel free to open issues, send pull requests or just send me an email. If you provide some good pull requests and moral support, you may be given the rights to commit directly.

Before making a commit, please try to adhere to the coding style of DIrrlicht.

Unit Tests

Unit Tests are being aggressively tested through Travis Cl on every push. It uses only those resources that are in repository. To run them offline, do dub test. You can pass an extra flag for other compilers (i.e. GDC and LDC) such as --compiler gdc and --compiler ldc2.

License

It is released under permissive zlib license same as Irrlicht Engine.

dirrlicht's People

Contributors

danyalzia avatar waffle-iron avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.