v2 / vlib / gg / image.js.v
22 lines · 18 sloc · 346 bytes · 6746e5b651b51b209fdd7c859c519709ca43aa91
Raw
1module gg
2
3@[heap]
4pub struct Image {
5pub mut:
6 id int
7 width int
8 height int
9 nr_channels int
10 ok bool
11 data voidptr
12 ext string
13
14 path string
15}
16
17pub fn (ctx &Context) draw_image_with_config(config DrawImageConfig) {
18}
19
20// destroy GPU resources associated with the image
21fn (img &Image) destroy() {
22}
23