XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Screensaver/Visualization Developement

Screensaver/Visualization Developement Create beautiful presets for XBMC's exclusive Vortex 3D Visualizer

Reply
 
Thread Tools Search this Thread Display Modes
Old 2008-05-20, 23:51   #1
leghorn
Junior Member
 
Join Date: May 2008
Posts: 2
leghorn is on a distinguished road
Default Vortex, how can I ...

show a background in Vortex.

Is it possible to set any picture as background?
leghorn is offline   Reply With Quote
Old 2008-05-25, 12:05   #2
MrC
Team-XBMC Developer
 
MrC's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 55
MrC is on a distinguished road
Default

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.


MrC is offline   Reply With Quote
Old 2008-06-01, 20:01   #3
leghorn
Junior Member
 
Join Date: May 2008
Posts: 2
leghorn is on a distinguished road
Default

thank you!
leghorn is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:05.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project