About Store Forum Documentation Contact



Post Reply 
Loading png file error
Author Message
Truelegend Offline
Member

Post: #1
Loading png file error
Code:
Images("cursor.png")->draw(EE::Rect(Vec2(D.w()/2, D.h()/2)));

When game is starting errors come up with message ' cant load cursor.png' i also tried tga file but it doesnt work too . :(
Okey now is loading but is doesnt show up :(
(This post was last modified: 04-13-2011 01:46 PM by Truelegend.)
04-13-2011 01:42 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #2
RE: Loading png file error
(04-13-2011 01:42 PM)Truelegend Wrote:  
Code:
Images("cursor.png")->draw(EE::Rect(Vec2(D.w()/2, D.h()/2)));

When game is starting errors come up with message ' cant load cursor.png' i also tried tga file but it doesnt work too . :(
Okey now is loading but is doesnt show up :(

PHP Code:
Image image;

   
image.Import("../data/cursor.png",-1,IMAGE_2D); 

   
image.draw(-10.5f21); // draw at (-1,0.5) position with (2,1) size 

There is always evil somewhere, you just have to look for it properly.
04-13-2011 02:03 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply