Vortex, how can I ...

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
leghorn Offline
Junior Member
Posts: 6
Joined: May 2008
Reputation: 0
Post: #1
show a background in Vortex.

Is it possible to set any picture as background?
find quote
MrC Offline
Team-XBMC Developer
Posts: 76
Joined: Jan 2004
Reputation: 0
Location: England
Post: #2
Hi

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

MrC

Code:
Texture    texture;

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

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

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
leghorn Offline
Junior Member
Posts: 6
Joined: May 2008
Reputation: 0
Post: #3
thank you!
find quote