> Removing the reliance on extension for all file types would be a major > undertaking, and would be possible for binary files that could have a > magic tag in their header (I think there's even a command on linux you > can use to get a file's type from this) but for shaders which are text, > again you'd need to parse the file and look for surefire signs that it's > a GLSL shader... Messy IMHO. > Yeah, I wouldn't want to remove the reliance on extensions. I can think of about 3 ways to determine file type, and I still like using extensions the best. I probably wouldn't be complaining about it at all if shaders just had standard extensions. You could make shaders a special case inside OSG, but this is probably a bad idea. For now I figured the best first step (and maybe last step) is to route them through the glsl loader. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
- Re: [osg-submissions] tight integration of virtu... Jean-Sébastien Guay
- Re: [osg-submissions] tight integration of virtual fi... Terry Welsh
- Re: [osg-submissions] tight integration of virtu... Terry Welsh
- Re: [osg-submissions] tight integration of v... Robert Osfield
- Re: [osg-submissions] tight integration ... Robert Osfield
- Re: [osg-submissions] tight integration of virtual fi... Terry Welsh
- Re: [osg-submissions] tight integration of virtu... Terry Welsh
- Re: [osg-submissions] tight integration of v... Jean-Sébastien Guay
- Re: [osg-submissions] tight integration ... Jason Daly
- Re: [osg-submissions] tight integrat... Jean-Sébastien Guay
- Re: [osg-submissions] tight integration of virtual fi... Terry Welsh
- Re: [osg-submissions] tight integration of virtu... Terry Welsh
- Re: [osg-submissions] tight integration of v... Terry Welsh
- Re: [osg-submissions] tight integration ... Terry Welsh
- Re: [osg-submissions] tight integrat... Robert Osfield
- Re: [osg-submissions] tight int... Robert Osfield
- Re: [osg-submissions] tight integrat... Terry Welsh
- Re: [osg-submissions] tight integration of virtual fi... Robert Osfield
- Re: [osg-submissions] tight integration of virtu... Robert Osfield
- Re: [osg-submissions] tight integration of v... Robert Osfield
- Re: [osg-submissions] tight integration of virtual fi... Terry Welsh
