CLEO Help Load Picture from site

CLEO related
Status
Not open for further replies.

ejexter

Well-known member
Joined
Feb 21, 2014
Messages
211
Reaction score
0
I can load this from website??  :yesyes:
Code:
while 8B71: render 0@ = load_texture_from_file "http://domain.com"
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Download it with:

Code:
0D92: 1@ = download_query url 2@ local_file "testfile.html" //2@ = url with "http://"

If you want, you can check if it's downloaded:
Code:
0D93: download_query 1@ get_state_to 3@ //If 3@ == 0, then file downloaded, if 3@ == -1, then process not ended, other value containt errorcode

Then draw it:

Code:
0B71: render 2@ = load_texture_from_file 1@
0B73: render draw_texture 1@ pos 2@ 3@ size 4@ 5@ rotation 6@ color 7@

Tell me if you want an example and i will try to do it.
 
Status
Not open for further replies.
Top