![]() |
VCV Rack API v2
|
Handles OS windowing, OpenGL, and NanoVG. More...
Classes | |
| struct | Svg |
| Scalable Vector Graphics document. More... | |
| struct | Font |
| Text font loaded in a particular Window context. More... | |
| struct | Image |
| Bitmap/raster image loaded in a particular Window context. More... | |
| struct | Window |
| OS window with OpenGL context. More... | |
Functions | |
| float | in2px (float in) |
| Converts inch measurements to pixels. | |
| math::Vec | in2px (math::Vec in) |
| float | mm2px (float mm) |
| Converts millimeter measurements to pixels. | |
| math::Vec | mm2px (math::Vec mm) |
| void | svgDraw (NVGcontext *vg, NSVGimage *svg) |
| PRIVATE void | init () |
| PRIVATE void | destroy () |
Variables | |
| DEPRECATED typedef Svg | SVG |
| static const float | SVG_DPI = 75.f |
| Arbitrary DPI, standardized for Rack. | |
| static const float | MM_PER_IN = 25.4f |
Handles OS windowing, OpenGL, and NanoVG.
|
inline |
Converts inch measurements to pixels.
|
inline |
Converts millimeter measurements to pixels.
| void rack::window::svgDraw | ( | NVGcontext * | vg, |
| NSVGimage * | svg ) |
| PRIVATE void rack::window::init | ( | ) |
| PRIVATE void rack::window::destroy | ( | ) |
| DEPRECATED typedef Svg rack::window::SVG |
|
static |
Arbitrary DPI, standardized for Rack.
|
static |