[B]Revision 976[/B]
[INDENT]render changes
IMaterial/CMaterial can now use ShaderConstant values to set variables.
IRender now maintains DesiredTechnique and is exposed publicly through IRender ( prior static use CShader::PushDesiredTechnique / Pop ). Similarly to before if a material has a technique defined this functionality is ignored.
IRender LookupShaderConstant function added to lookup render specific constant strings by ShaderConstant and vice versa. -- all functions return true if valid, input variables poll/convert are untouched if functions return false. ( CRender implementation in CShaderConstant.cpp )
IShader added inline function SetValueTexture( int iIndex, ITexture* ) which calls SetValueTexture( ShaderConstant::TEXTURE0 + iIndex ) ( matches IMaterials SetTexture(int, ITexture*) )
[/INDENT] [B]Changed Files:[/B]
[LIST]
[*]trunk/Source/public/IMaterial.h
[*]trunk/Source/public/IRender.h
[*]trunk/Source/public/IShader.h
[*]trunk/Source/render/CMaterial.cpp
[*]trunk/Source/render/CMaterial.h
[*]trunk/Source/render/CShader.cpp
[*]trunk/Source/render/CShader.h
[*]trunk/Source/render/CShaderConstant.cpp
[*]trunk/Source/render/Mesh.cpp
[*]trunk/Source/render/render.cpp
[*]trunk/Source/render/render.h
[/LIST]
Committed By [B]Pat Glynn[/B]
Sorry, you need to Log In to post a reply to this thread.