directpython simple texture

J

...:::JA:::...

Hello,

Is there any real easy example for loading an texture in your directpython
window???
For example this is my code:

# loading directpython modules
import d3dx
import d3d
from d3dc import *
import d3dgui
import time

#making a window
fr=d3dx.Frame(u"Bok kaj ima")

# trying to load an texture
t1 = d3d.Texture(u"textures/skin.tiger.dds")
d3d.setTexture(t1, 0)


#starting the application
fr.mainloop()

.....after I run this example, all I got is blue,clear frame.Is there really
any simple
texture example??? Please don't tell me to I look into directpython
samples becose
it's not helpful!!!!!


Thanks!!!!!!
__________________________________________________________________ Vedran
veki ICQ#: 264412055 Current ICQ status: + More ways to contact me Get ICQ!
__________________________________________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top