dplug.graphics

Dplug graphics packages, based on a fork of ae.utils.graphics.

Modules

color
module dplug.graphics.color

Color type and operations. Port of ae.utils.graphics.

draw
module dplug.graphics.draw

Drawing functions. Port of ae.utils.graphics.

drawex
module dplug.graphics.drawex
Undocumented in source.
font
module dplug.graphics.font

Font high-level interface.

image
module dplug.graphics.image

In-memory images.

jpegload
module dplug.graphics.jpegload

Loads a JPEG image from a memory buffer or a file. req_comps can be 1 (grayscale), 3 (RGB), or 4 (RGBA). On return, width/height will be set to the image's dimensions, and actual_comps will be set to the either 1 (grayscale) or 3 (RGB). Requesting a 8 or 32bpp image is currently a little faster than 24bpp because the jpeg_decoder class itself currently always unpacks to either 8 or 32bpp. JPEG image loading.

mipmap
module dplug.graphics.mipmap

Mipmap pyramid implementation.

pngload
module dplug.graphics.pngload

PNG image loading. D translation of stb_image-2.27 This port only support PNG loading, 8-bit and 16-bit.

resizer
module dplug.graphics.resizer

Resizer ported to D from C++, based on https://github.com/avaneev/avir "lancir" method.

stb_image_resize
module dplug.graphics.stb_image_resize

Resizer ported to D from C. Removed a few features that did'nt make sense in Dplug.

stb_truetype
module dplug.graphics.stb_truetype

D translation of stb_truetype v0.7 by Sean Barrett More information on http://nothings.org/stb/stb_truetype.h Removed: - texture baking API - font finding in the TTF itself. Make sure there is only one font in the TTF.

view
module dplug.graphics.view
Undocumented in source.

Public Imports

dplug.graphics.color
public import dplug.graphics.color;
dplug.graphics.image
public import dplug.graphics.image;
dplug.graphics.draw
public import dplug.graphics.draw;
dplug.graphics.resizer
public import dplug.graphics.resizer;
dplug.graphics.mipmap
public import dplug.graphics.mipmap;
dplug.graphics.font
public import dplug.graphics.font;

Meta

License

A mix of Boost 1.0, MPL 2.0, and public domain. See individual files for details.