Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Sharing Textures between Devices
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

EACam
Warrior

154 Posts

Posted - May 29 2004 :  11:29:49 AM  Show Profile  Reply with Quote
Ok...my editor needs to have multiple windows, and therefore multiple devices. I've already got that all set up (i've devised a sweet architecture for handling mutliple windows ). Only problem. As far as I know, when you load a texture you have to supply the device its "loaded in" (i guess). This poses a problem for me. I need my windows to have access to the same array of textures. It doesn't make sense that DX would force you to reload ALL your textures for each device does it? Maybe I'll have to, but i'd much rather have them use the same memory (since i'll be loading a LOT of textures).

Any thougths?

Thanks a bunch.

SuperC
Squire

11 Posts

Posted - May 29 2004 :  3:26:32 PM  Show Profile  Click to see SuperC's MSN Messenger address  Reply with Quote
Use 1 device to render the multiple windows.

Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 29 2004 :  3:48:57 PM  Show Profile  Reply with Quote
Can you? I don't think you can. When you initialize a device, you have to give it a window handle (hWnd) and picture boxes each have their own.
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 29 2004 :  4:32:07 PM  Show Profile  Reply with Quote
See this at DirectX4VB.

Quick snippets, tip #5.

Whatever. Who knows...
Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 29 2004 :  7:42:22 PM  Show Profile  Reply with Quote
Thanks!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.