Rev 7054 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7054 | Rev 7156 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #ifndef INCLUDE_LIBIMG_H |
4 | #ifndef INCLUDE_LIBIMG_H |
5 | #include "../lib/obj/libimg.h" |
5 | #include "../lib/obj/libimg.h" |
6 | #endif |
6 | #endif |
Line 7... | Line 7... | ||
7 | 7 | ||
8 | :struct libimg_image { |
8 | :struct libimg_image { |
9 | dword image, w, h; |
9 | dword image, w, h, imgsrc; |
Line 10... | Line 10... | ||
10 | } skin; |
10 | } skin; |
11 | 11 | ||
12 | :void Libimg_LoadImage(dword struct_pointer, file_path) |
12 | :void Libimg_LoadImage(dword struct_pointer, file_path) |
13 | { |
13 | { |
14 | dword image_pointer; |
14 | dword image_pointer; |
15 | image_pointer = load_image(file_path); |
15 | image_pointer = load_image(file_path); |
16 | if (!image_pointer) notify("'Error: Image not loaded' -E"); |
16 | if (!image_pointer) notify("'Error: Image not loaded' -E"); |
17 | ESDWORD[struct_pointer] = image_pointer; |
17 | ESDWORD[struct_pointer] = image_pointer; |
- | 18 | ESDWORD[struct_pointer+4] = DSWORD[image_pointer+4]; |
|
18 | ESDWORD[struct_pointer+4] = DSWORD[image_pointer+4]; |
19 | ESDWORD[struct_pointer+8] = DSWORD[image_pointer+8]; |
Line 19... | Line 20... | ||
19 | ESDWORD[struct_pointer+8] = DSWORD[image_pointer+8]; |
20 | ESDWORD[struct_pointer+12] = ESDWORD[image_pointer+24]; |
20 | } |
21 | } |
21 | 22 |