Re: [osg-users] OSG Arrays and custom allocators?

2012-08-15 Thread David Callu
Hi Paul, 2012/8/13 Paul Martz pma...@skew-matrix.com Hi all -- There doesn't seem to be a way to use a custom allocator with an OSG Array type. Is that correct, or have I missed something? You're right I have a large store of array data, and want to create a new instance of an OSG

Re: [osg-users] OSG Arrays and custom allocators?

2012-08-15 Thread Peter Hrenka
Hi, Am 13.08.2012 18:07, schrieb Paul Martz: Hi all -- There doesn't seem to be a way to use a custom allocator with an OSG Array type. Is that correct, or have I missed something? I have a large store of array data, and want to create a new instance of an OSG Array that references

Re: [osg-users] OSG Arrays and custom allocators?

2012-08-15 Thread Paul Martz
Hi David. Thanks for the many suggestions. Unfortunately, the code I'm working on needs to work with a released version of OSG, so mods to OSG itself are not an option. Apparently I overlooked the obvious swap() solution. I've done a quick test and I believe this will work for me. And

[osg-users] OSG Arrays and custom allocators?

2012-08-13 Thread Paul Martz
Hi all -- There doesn't seem to be a way to use a custom allocator with an OSG Array type. Is that correct, or have I missed something? I have a large store of array data, and want to create a new instance of an OSG Array that references that data store without invoking a data copy or