Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Texturing dosnt work!

Author
Message
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 16th Feb 2009 15:43
Hi!

First; the code snippet


This just shows a white box as if textureobject where never called.
Why? How do I fix it?

Keep it simple.
Questions? Mail me
Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 16th Feb 2009 17:21
Is your PNG file in the correct folder?
Is the name of the file "grass.PNG" exactly?

Sorry, but other than that I am out of ideas.
heyufool1
15
Years of Service
User Offline
Joined: 14th Feb 2009
Location: My quiet place
Posted: 16th Feb 2009 21:01
As matty said is your texture in the same folder? and is the texture's size a power of 2? ( 32x32, 64x64, 128x128 etc. )
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 16th Feb 2009 23:17
Yes, and yes. And I figured it out. Earlier in the code I was messing with the DX device and had a few errors so.. well, things didnt work as the should... not at all.

Keep it simple.
Questions? Mail me

Login to post a reply

Server time is: 2024-11-25 13:32:27
Your offset time is: 2024-11-25 13:32:27