armos ~feature-mouse-dragging
Armos is a free and open source library for creative coding in D programming language.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
English/日本語
armos
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
Install
- Install some packages to build with dlang.
- macOS
$ brew install dmd dub
- Download this repository.
- Latest(via github)
$ git clone git@github.com:tanitta/armos.git
$ dub add-local <repository-path>
- Stable(via dub)
$ dub fetch armos
- Install dependency dynamic libraries and npm for glsl package management.
- macOS
$ brew install glfw3 assimp freeimage libogg libvorbis npm
- 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
Contribution
Contributions are very welcome!
- Fork it
- Create your feature branch from dev branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
- ~feature-mouse-dragging released 7 years ago
- tanitta/armos
- BSL-1.0
- Copyright © 2015, tanitta
- Authors:
- Dependencies:
- derelict-vorbis, derelict-ogg, colorize, derelict-portmidi, derelict-gl3, dub, rx, derelict-ft, derelict-glfw3, fswatch, derelict-assimp3, derelict-fi, derelict-al
- Versions:
-
0.2.6 2017-Nov-12 0.2.5 2017-Oct-06 0.2.4 2017-Aug-20 0.2.3 2017-Jul-28 0.2.2 2017-Jul-28 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
174 downloads total
-
- Score:
- 2.1
- Short URL:
- armos.dub.pm