DarkRadiant ShaderLibrary: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
No edit summary
 
m (categorize)
 
Line 5: Line 5:
Shaders objects are instantiated on the heap (and kept track of by using boost::shared_ptrs) as soon as a request getShaderByName() is reaching the Doom3ShaderSystem class.
Shaders objects are instantiated on the heap (and kept track of by using boost::shared_ptrs) as soon as a request getShaderByName() is reaching the Doom3ShaderSystem class.


[[Category:DarkRadiant]]
{{darkradiant-internal|sort=ShaderLibrary}}
[[Category:Coding]]

Latest revision as of 23:15, 11 November 2007

The ShaderLibrary holds all the named ShaderDefinitions and the named Shader objects.

The ShaderDefinition map gets populated during startup when the material files are parsed by the ShaderFileParser.

Shaders objects are instantiated on the heap (and kept track of by using boost::shared_ptrs) as soon as a request getShaderByName() is reaching the Doom3ShaderSystem class.