33
44 This file is part of COLLADASaxFrameworkLoader.
55
6- Licensed under the MIT Open Source License,
6+ Licensed under the MIT Open Source License,
77 for details please see LICENSE file or the website
88 http://www.opensource.org/licenses/mit-license.php
99*/
1010
1111#ifndef __COLLADASAXFWL_LIBRARYEFFECTSSLOADER_H__
1212#define __COLLADASAXFWL_LIBRARYEFFECTSSLOADER_H__
1313
14- #include " COLLADASaxFWLPrerequisites.h"
15- #include " COLLADASaxFWLFilePartLoader.h"
16- #include " COLLADASaxFWLXmlTypes.h"
14+ #include " COLLADASaxFWLLibraryImagesLoader.h"
1715
1816#include " COLLADAFWEffectCommon.h"
1917#include " COLLADAFWTypes.h"
@@ -32,7 +30,7 @@ namespace COLLADASaxFWL
3230{
3331
3432 /* * TODO Documentation */
35- class LibraryEffectsLoader : public FilePartLoader
33+ class LibraryEffectsLoader : public LibraryImagesLoader
3634 {
3735 public:
3836 enum ShaderParameterTypes
@@ -218,7 +216,7 @@ namespace COLLADASaxFWL
218216 /* * Store the sid of the new param.*/
219217 virtual bool begin__newparam____cg_newparam ( const newparam____cg_newparam__AttributeData& attributeData );
220218
221- /* * Set the current profile to PROFILE_COMMON. Create and append common effect to current
219+ /* * Set the current profile to PROFILE_COMMON. Create and append common effect to current
222220 effect.*/
223221 virtual bool begin__profile_COMMON ( const profile_COMMON__AttributeData& attributeData );
224222
@@ -258,7 +256,7 @@ namespace COLLADASaxFWL
258256 virtual bool begin__minfilter (){return true ;}
259257 virtual bool end__minfilter (){return true ;}
260258 virtual bool data__minfilter ( const ENUM__fx_sampler_filter_common value );
261-
259+
262260 /* * We don't need to do anything here.*/
263261 virtual bool begin__source____NCName (){return true ;}
264262
@@ -289,7 +287,7 @@ namespace COLLADASaxFWL
289287 /* * Resolve all the samplers and copy them to the current effect.*/
290288 virtual bool begin__profile_COMMON__technique ( const profile_COMMON__technique__AttributeData& attributeData );
291289
292- /* * Iterate over the list of used samplers in the current effect profile and push them
290+ /* * Iterate over the list of used samplers in the current effect profile and push them
293291 in the sampler array. */
294292 bool fillSamplerArray ();
295293
@@ -377,7 +375,7 @@ namespace COLLADASaxFWL
377375
378376 private:
379377 /* * Set the shader type of the current profile.*/
380- bool setCommonEffectShaderType ( COLLADAFW::EffectCommon::ShaderType shaderType);
378+ bool setCommonEffectShaderType ( COLLADAFW::EffectCommon::ShaderType shaderType);
381379
382380 /* * Stores color data into the correct color object.*/
383381 bool handleColorData ( const float * value, size_t length );
@@ -391,7 +389,7 @@ namespace COLLADASaxFWL
391389 bool handleExtraEffectTextures ( const COLLADAFW::PointerArray<COLLADAFW::TextureAttributes>& effectTextures );
392390
393391 /* *
394- * Luminance is the function, based on the ISO/CIE color standards (see ITU-R
392+ * Luminance is the function, based on the ISO/CIE color standards (see ITU-R
395393 * Recommendation BT.709-4), that averages the color channels into one value.
396394 */
397395 double calculateLuminance ( const COLLADAFW::Color& color );
0 commit comments