471,312 Members | 1,770 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,312 software developers and data experts.

directpython simple texture

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!
__________________________________________________ ________________
Jul 17 '07 #1
0 1358

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jérôme Le Bougeant | last post: by
reply views Thread by vedran | last post: by
1 post views Thread by vedran | last post: by
2 posts views Thread by =?ISO-8859-2?Q?Rafa=B3?= Maj | last post: by
reply views Thread by ...:::JA:::... | last post: by
3 posts views Thread by vedrandekovic | last post: by
2 posts views Thread by veki | last post: by
reply views Thread by brixton | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.