| 1 | module gg |
| 2 | |
| 3 | @[heap] |
| 4 | pub struct Image { |
| 5 | pub 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 | |
| 17 | pub fn (ctx &Context) draw_image_with_config(config DrawImageConfig) { |
| 18 | } |
| 19 | |
| 20 | // destroy GPU resources associated with the image |
| 21 | fn (img &Image) destroy() { |
| 22 | } |
| 23 |