Holloweye Posted December 19, 2009 Posted December 19, 2009 I try this: TTexture texture = LoadTexture("abstract::board.dds"); main... { DrawImage(texture); } and it crash. Anyone see a problem? (I have tried with and without abstract: Quote
macklebee Posted December 19, 2009 Posted December 19, 2009 you are missing alot of parameters... don't know if thats the issue or not though... void DrawImage(TTexture texture, int x=0, int y=0, int width=-1, int height=-1) Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel
Holloweye Posted December 19, 2009 Author Posted December 19, 2009 I have already tried with all parameters. And it should work without them because in the example on leadwerks.wiki he dont use any parameters. link: http://leadwerks.com/wiki/index.php?title=DrawImage Quote
mikedowd729 Posted December 20, 2009 Posted December 20, 2009 Does the texture load correctly, if you comment out the DrawImage command does it still crash? I know I was having some problems when my texture wasn't the correct resolution. Quote
L B Posted December 20, 2009 Posted December 20, 2009 If the texture loads correctly, you need to make sure its height is higher than 1px. http://leadwerks.com/werkspace/index.php?/tracker/issue-46-not-able-to-draw-texture-with-1px-height/ Quote
Holloweye Posted December 25, 2009 Author Posted December 25, 2009 The program crash when I try to load the image. The image is 512x512 and its .dds. Quote
Mumbles Posted December 25, 2009 Posted December 25, 2009 Was the image created using Josh's DDS converter? If not, try using that. Quote LE Version: 2.50 (Eventually)
Laurens Posted December 27, 2009 Posted December 27, 2009 If your program is crashing on the Load call, make sure you have created a world. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.