PDA

View Full Version : Vortex, how can I ...


leghorn
2008-05-20, 23:51
show a background in Vortex.

Is it possible to set any picture as background?

MrC
2008-05-25, 12:05
Hi

The following should do what you want. Note that any pictures you want to load must be in Vortex's texture folder.

MrC


Texture texture;

void Init()
{
texture.LoadTexture("mypicture.jpg");
}

void Render()
{
gfxSetTexture(texture);
gfxTranslate(0, 0, 2.414);
gfxSetAspect(0);
gfxTexRect(-1, 1, 1, -1);
}

leghorn
2008-06-01, 20:01
thank you!