Is there a function foreseen to clone HLMS datablocks, like the Material::clone() function?
In my case, it would be useful to retrieve the HLMS datablock from a font, duplicate it and use the copy for another movable object (MovableText) with different macro or blend parameters.
Thanks!
[Ogre 2.1] Clone HLMS datablocks
-
Jayray
- Greenskin
- Posts: 115
- Joined: Sun Sep 09, 2012 5:29 pm
- Location: Strasbourg, France
- x 9
-
Jayray
- Greenskin
- Posts: 115
- Joined: Sun Sep 09, 2012 5:29 pm
- Location: Strasbourg, France
- x 9
Re: [Ogre 2.1] Clone HLMS datablocks
I will try to implement this function by myself and make a pull request 
It does not seem so difficult and I think Matias is busy enough right now
It does not seem so difficult and I think Matias is busy enough right now
-
Jayray
- Greenskin
- Posts: 115
- Joined: Sun Sep 09, 2012 5:29 pm
- Location: Strasbourg, France
- x 9
Re: [Ogre 2.1] Clone HLMS datablocks
Here is a first pull request: https://bitbucket.org/sinbad/ogre/pull- ... od-to/diff
As I said in the comments, it is not complete yet, but I would like to have an expert's opinion before going further
As I said in the comments, it is not complete yet, but I would like to have an expert's opinion before going further
-
Jayray
- Greenskin
- Posts: 115
- Joined: Sun Sep 09, 2012 5:29 pm
- Location: Strasbourg, France
- x 9
Re: [Ogre 2.1] Clone HLMS datablocks
Pull request updated for the PBS datablocks.
Works well for me, but I have not tested all the cases (multiple detail maps, etc.).
Works well for me, but I have not tested all the cases (multiple detail maps, etc.).