Hi,

On Mon, Jul 1, 2013 at 3:55 PM, Aurelien Albert
<[email protected]> wrote:
> Hi,
>
> I've done this for interoperability between OSG and client library, for 
> exampe for a texture :
>
> I've created a "WrapperTexture" class which inherits from osg::StateAttribute 
> directly.
>
> - It expose it's StateAttribute type (getType() method) as TEXTURE
> - It contain a member which is an instance of my client library's texture 
> class
> - in "apply" method, it call the equivalent of "apply" on my client library 
> texture class.
>
> You can start be creating a class which inherit from osg::StateAttribute, 
> implements all pure-virtual methods and have a look to osg::Texture and 
> osg::Texture2D to see what methods needs to be overriden (like getModeUsage() 
> and isTextureAttribute())
>

Ah, cool, I didn't think about doing that. Thanks for the tip, let me
have a go at this.

Regards,

Jan
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to