RE: [Plib-devel] User defined texture formats
Brought to you by:
sjbaker
From: Dave M. <Dav...@dy...> - 2000-05-08 22:31:59
|
> I think SSG needs to have some hooks to allow user defined image > formats... Would this be useful to anyone else? Yes. Very much. I'm working on a hook for leaf creation during model load which is perhaps a more general case of what you want. When a leaf is created, the hook function can decide what it wants to do. It could call it's own image loader for the texture. Other uses of a hook function during leaf creation include sharing ssgSimpleState entities, culling unwanted geometry, recomputing normals, and ignoring texture mapping coordinates/images. struct ssgCreateLeafData { char* parentName ; GLenum gltype ; ssgVertexArray *vl ; ssgNormalArray *nl ; ssgTexCoordArray *tl ; ssgColourArray *cl ; ssgSimpleState *st ; //setTexture() not yet called char* tfname ; //nonzero if has texture } ; typedef ssgLeaf* (*ssgCreateLeafFunc)( ssgCreateLeafData* data ) ; I was going to wait until plib1.2 but I could commit now if Steve permits --Dave |