12 Result := get_img_width(ptr
)
19 Result := get_img_height(ptr
)
22 is_connected
: BOOLEAN
24 load(filename
: STRING) is
26 ptr
:= load_image(filename
.to_external
)
27 if ptr
.is_not_null
then
36 if ptr
.is_not_null
then
42 partial_blit(rx
, ry
, rw
, rh
, x
, y
: INTEGER) is
46 partial_blit_img(ptr
, rx
, ry
, rw
, rh
, x
, y
)
49 blit(x
, y
: INTEGER) is
56 render_string(s
: STRING; font
: TTF_FONT
; c
: COLOR
) is
58 not is_connected
--otherwise it's a memory leak
63 ptr
:= ext_render_text(s
.to_external
, font
.to_external
, c
.to_external
)
64 if ptr
.is_not_null
then
66 convert_display_format
68 io
.put_string("render_string " + s
.count
.to_string
+ " failed!%N")
74 set_alpha(a
: INTEGER) is
81 convert_display_format_alpha
is
85 ptr
:= ext_display_format_alpha(ptr
)
88 convert_display_format
is
92 ptr
:= ext_display_format(ptr
)
98 load_image(filename
: POINTER
) : POINTER
is
102 free_img(i
: POINTER
) : POINTER
is
106 ext_render_text(string : POINTER
; font
: POINTER
; c
: POINTER
) : POINTER
is
110 get_img_width(i
: POINTER
) : INTEGER is
114 get_img_height(i
: POINTER
) : INTEGER is
118 img_set_alpha(i
: POINTER
; a
: INTEGER) is
122 partial_blit_img(i
: POINTER
; rx
, ry
, rw
, rh
, x
, y
: INTEGER) is
126 blit_img(i
: POINTER
; x
, y
: INTEGER) is
130 ext_display_format_alpha(p
: POINTER
) : POINTER
is
134 ext_display_format(p
: POINTER
) : POINTER
is