You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Vladimír Vondruš 7ebec50d2b doc: updated also Getting Started image to the new color. 11 years ago
..
.gitattributes Shaders: there's never enough documentation. 11 years ago
CMakeLists.txt doc: updated also Getting Started image to the new color. 11 years ago
README.md doc: updated also Getting Started image to the new color. 11 years ago
configure.h.cmake Shaders: there's never enough documentation. 11 years ago
hello.cpp doc: updated also Getting Started image to the new color. 11 years ago
shaders.cpp Shaders: there's never enough documentation. 11 years ago
vector-distancefield.png Shaders: there's never enough documentation. 11 years ago
vector.png Shaders: there's never enough documentation. 11 years ago
vector.svg Shaders: there's never enough documentation. 11 years ago

README.md

Source files for images in Magnum documentation

Compile and install Magnum with Sdl2Application, windowless application for your platform and magnum-distancefieldconverter utility and any PngImporter and PngImageConverter plugins from Magnum Plugins.

Create build dir, point CMake to this directory and compile the executables:

mkdir build-doc
cd build-doc
cmake ../doc/generated
cmake --build .

"Getting started" image

Displayed by the hello executable. Run the app and take screenshot using KSnapshot (including decorations, 880x707). Similarly for the gray version. The resulting files should be resized to half the size and without alpha channel using imagemagick:

mogrify -flatten -background '#ffffff' -resize 440 getting-started.png
mogrify -flatten -background '#ffffff' -resize 440 getting-started-blue.png

The output printed by the application can be used to update the example output in doc/getting-started.dox.

Shader images

Generated by the shaders executable. Must be run in this directory, the output is put into doc/ directory. The executable requires two textures:

  • vector.png, generated as full-page PNG output at 90 DPI from vector.svg, converted to pure grayscale using imagemagick:

    mogrify -flatten -background '#ffffff' -format grayscale vector.png
    
  • vector-distancefield.png, generated as full-page PNG output at 360 DPI (1024x1024) and then processed through magnum-distancefieldconverter

    magnum-distancefieldconverter --importer PngImporter --converter PngImageConverter --output-size "64 64" --radius 16 vector-src.png vector-distancefield.png