mltg
Direct2D wrapper library
Usage overview
1. Create a mltg::Context
and a mltg::Factory
let ctx = Context?;
let factory = ctx.create_factory;
2. Create a render target
In the case of using winit.
let window_size = window.inner_size.;
let mut render_target = ctx.create_render_target?;
3. Create resources
For example, create the solid color brush.
let brush = factory.create_solid_color_brush?;
4. Draw
For example, draw the rectangle of filled color.
ctx.set_scale_factor;
ctx.draw;
Copyright (c) 2021 LNSEAB