Boost logo

Boost :

From: Marcus Lindblom (macke_at_[hidden])
Date: 2006-10-10 08:43:24


Michael Marcin wrote:
> Janek Kozicki wrote:
>
>> Marcus Lindblom said: (by the date of Sun, 08 Oct 2006 13:28:56 +0200)
>>
>>
>>> Perhaps we can make it so that you can decouple access style from the
>>> general algorithms? We might need that anyway, if we want to support
>>> things like rgba, stqr, etc, for the small 1-4 element vectors.
>>>
>> interesting idea, compare:
>>
>> - iterators <-> continers
>> - member access <-> vectors
>>
>> maybe with MPL it's possible to define that 'custom' access method.
>>
>>
>
> It would be very cool if you could swizzle the components for small
> vectors cheaply into views ala high level shader languages. I.E.
>
The syntax might be a bit tricky to get right. I'm fairly sure it's not
possible to do exactly the same thing, but we might be able to get
something similar.

/Marcus


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk