glamour 1.0.1
Glamour is an OpenGL wrapper for the 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:
glamour
Glamour is an OpenGL wrapper for the D programming language.
Installation
Glamour supports these -version
switches:
-version=gl3n
– Adds gl3n support to glamour (you can pass gl3n vectors and matrices directly as uniform).-version=glad
– Uses glad forglamour.gl
.-version=Derelict2
– Uses Derelict2 forglamour.gl
.-version=Derelict3
– Uses Derelict3 forglamour.gl
.-version=stb
– Usesstb_image
to load textures from images.-version=SDLImage2
- Uses theSDL
to load textures from images, this requiresDerelictSDL2
.-version=SDLImage
- Uses theSDL
to load textures from images, this requiresDerelictSDL
.1
To build glamour I recommend you to use the Makefile
:
# to build with stb_image
wget -O stb_image.d https://bitbucket.org/dav1d/gl-utils/raw/tip/stb_image/stb_image.d
make DCFLAGS+="-version=glad -version=stb -version=gl3n `pkg-config --libs --cflags gl3n`"
# installing
make install
Example
Simple examples are available now in example directory. The simplest way to try them, is to use the dub package manager. Go to directory where glamour is installed and use the following:
dub run --config=example
dub run --config=example_texture
This command installs all dependencies, builds the example and runs it.
Documentation
- Registered by David Herberth
- 1.0.1 released 10 years ago
- Dav1dde/glamour
- github.com/Dav1dde/glamour
- MIT
- Copyright © 2011-2014, David Herberth
- Authors:
- Dependencies:
- none
- Versions:
-
1.0.1 2014-Sep-21 ~master 2016-Oct-05 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
371 downloads total
-
- Score:
- 2.4
- Short URL:
- glamour.dub.pm