Re: DirectX and ScreenSaverProc
- From: "Wessam Bahnassi" <wbahnassi@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 May 2005 21:08:05 +0300
Use FindFirstFile() and FindNextFile() to loop on files in a directory, and
load each one into a texture...
At runtime, just set the new texture pointer for changing it on the cube...
Wessam Bahnassi
Microsoft DirectX MVP,
Lead Programmer
In|Framez
"Bryan" <kashmir76@xxxxxxxxxx> wrote in message
news:MZCdnZbFuqmDvR_fRVn-jg@xxxxxxxxxxxxx
> Thanks for replying.
>
> How do you suggest that I load all the pictures of a given directory? I
> want the pictures to change while the cube is spinning. Any ideas?
>
> Bryan
>
> "Wessam Bahnassi" <wbahnassi@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> message news:uhnTiLfVFHA.1384@xxxxxxxxxxxxxxxxxxxxxxx
>> Load the textures before playing anything. Loading such big resources
> amidst
>> app main loop is a big no-no for performance...
>>
>> Wessam Bahnassi
>> Microsoft DirectX MVP,
>> Lead Programmer
>> In|Framez
>>
>> "Bryan" <kashmir76@xxxxxxxxxx> wrote in message
>> news:VKidnbuJZp9LRR3fRVn-pg@xxxxxxxxxxxxx
>> > Hi all,
>> >
>> > I hope that someone will be able to help me. I created a screensaver
> of
>> > a cube that I can map my pictures to all 6 surfaces. I call the render
>> > function each time a WM_TIMER messageis recieved and then after every
>> > 10
>> > (or
>> > 20 ect ) WM_TIMER calles I also call D3DXCreateTextureFromFile to load
>> > another file on to the cube. The problems is that while the file is
>> > loading
>> > the cube stops spinning. Does anyone have an idea how I can avoid this
> and
>> > keep the cube from stopping while mesh changes?
>> > Thanks in advance.
>> >
>> > Bryan
>> >
>> >
>>
>>
>
>
.
- Follow-Ups:
- Re: DirectX and ScreenSaverProc
- From: Bryan Crotaz
- Re: DirectX and ScreenSaverProc
- References:
- DirectX and ScreenSaverProc
- From: Bryan
- Re: DirectX and ScreenSaverProc
- From: Wessam Bahnassi
- Re: DirectX and ScreenSaverProc
- From: Bryan
- DirectX and ScreenSaverProc
- Prev by Date: Re: VertexBuffer colors coming out wrong.
- Next by Date: Re: TV out
- Previous by thread: Re: DirectX and ScreenSaverProc
- Next by thread: Re: DirectX and ScreenSaverProc
- Index(es):
Relevant Pages
|