directpython simple texture

...:::JA:::... vedrandekovic at v-programs.com
Tue Jul 17 20:26:46 CEST 2007


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! 
__________________________________________________________________ 





More information about the Python-list mailing list