Kodi Community Forum
Vortex, how can I ... - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: Screensavers and visualisations (https://forum.kodi.tv/forumdisplay.php?fid=38)
+---- Thread: Vortex, how can I ... (/showthread.php?tid=33425)



Vortex, how can I ... - leghorn - 2008-05-20

show a background in Vortex.

Is it possible to set any picture as background?


- MrC - 2008-05-25

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);
}



- leghorn - 2008-06-01

thank you!