#1
|
|||
|
|||
GUI Image?
I'm working on creating a GUI splashcreen and am looking to include in image as part of the interactive interface. What is the best way to og about this? Since it's just a GUI, it's just a 2-D .jpg that I'm hoping to include on the screen. Can I add it as a window, or through a text info box?
Thanks. |
#2
|
|||
|
|||
Hi,
If you just want to display a 2D image on screen then you can create a texture quad that takes up the entire window. Here is some sample code: Code:
tex = viz.add('ball.jpg',wrap=viz.CLAMP_TO_EDGE) quad = viz.addTexQuad(parent=viz.SCREEN,scale=[12.8,10.24,1],pos=[0.5,0.5,0],texture=tex) |
#3
|
|||
|
|||
Works perfectly. Thanks a bunch.
|
Thread Tools | |
Display Modes | Rate This Thread |
|
|