PolyFixedShader.h 919 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * PolyFixedShader.h
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 9/20/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. // @package Materials
  10. #pragma once
  11. #include "PolyLogger.h"
  12. #include "PolyGlobals.h"
  13. #include "PolyShader.h"
  14. #include "PolyTexture.h"
  15. namespace Polycode {
  16. class _PolyExport FixedShader : public Shader {
  17. public:
  18. FixedShader();
  19. ~FixedShader();
  20. ShaderBinding *createBinding();
  21. protected:
  22. };
  23. class _PolyExport FixedShaderBinding : public ShaderBinding {
  24. public:
  25. FixedShaderBinding(FixedShader *shader);
  26. ~FixedShaderBinding();
  27. void addTexture(string name, Texture *texture);
  28. void addCubemap(string name, Cubemap *cubemap);
  29. void addParam(string type, string name, string value);
  30. Texture *getDiffuseTexture();
  31. protected:
  32. vector<Texture*> textures;
  33. vector<Cubemap*> cubemaps;
  34. FixedShader *fixedShader;
  35. };
  36. }