[osg-users] Using a custom StateAttribute

Robert Milharcic robert.milharcic at ib-caddy.si
Mon Oct 19 04:50:41 PDT 2015


On 18.10.2015 22:58,
  Jannik Heller wrote:
> To me it seems the feature advertised in docs of creating your own StateAttributes simply isn't possible, just because of this one function returning enum instead of int, which would be an easy fix. Am I missing something here?
Probably not. The underlying integral type for the enum Type could be (and probably is) int8_t. That implies that possible values for the user type should be within range +- 127 or the conversion to Type will be undefined.

Best Regards
Robert Milharcic



More information about the osg-users mailing list