Code Monkey home page Code Monkey logo

armos's Introduction

English/日本語

armos

Dub version Dub downloads License Build Status

armos is a free and open source library for creative coding in D programming language.

Demo

import armos.app;
import armos.graphics;
class TestApp : BaseApp{
    Mesh line = new Mesh;

    override void setup(){
        lineWidth(2);
        line.primitiveMode = PrimitiveMode.LineStrip;
    }

    override void draw(){
        line.drawWireFrame;
    }

    override void mouseMoved(int x, int y, int button){
        line.addVertex(x, y, 0);
        line.addIndex(cast(int)line.numVertices-1);
    }
}

void main(){run(new TestApp);}

Platform

  • Linux
  • macOS
  • Windows

Require

  • dmd
  • ldc(optional)
  • dub
  • npm
  • GLFW3
  • OpenGL3
  • FreeImage
  • OpenAL
  • libogg
  • libvorbis
  • Assimp

Install

  1. Install some packages to build with dlang.
  • macOS
$ brew install dmd dub
  1. Download this repository.
  • Latest(via github)
$ git clone [email protected]:tanitta/armos.git
$ dub add-local <repository-path>
  • Stable(via dub)
$ dub fetch armos
  1. Install dependent dynamic libraries and npm for glsl package management.
  • macOS
$ brew install glfw3 assimp freeimage libogg libvorbis npm
  1. Build armos.
$ dub build armos

Usage

Generate new project.

$ dub run armos -- generate project <projectpath>

We recoment to set alias. (This command: $ dub list | grep "armos" will find a package path of armos)

alias armos="path/to/armos"

Or, add to aleady existing package.

put the following dependency into your project's dub.sdl or dub.json.

dependency "armos" version="~>0.0.1"

Why use D?

  • Processing Speed : D is as fast as C++ programs.

  • Build Speed : The compilation is more faster than a speed of C++. Because of that, we can repeat trial and error.

  • Extensibility : We can use C/C++/Objective-C via D binding.

  • Easiness to learn : It isn't so much complex than C++!

  • Other point is here

ScreenShots

ss1

ss2

Contribution

Contributions are very welcome!

  1. Fork it
  2. Create your feature branch from dev branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

armos's People

Contributors

alphakai avatar lempiji avatar namachan10777 avatar ray45422 avatar tanitta avatar

Watchers

 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.