PolyFixedShader.h 943 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 "PolyString.h"
  12. #include "PolyLogger.h"
  13. #include "PolyGlobals.h"
  14. #include "PolyShader.h"
  15. #include "PolyTexture.h"
  16. namespace Polycode {
  17. class _PolyExport FixedShader : public Shader {
  18. public:
  19. FixedShader();
  20. ~FixedShader();
  21. ShaderBinding *createBinding();
  22. protected:
  23. };
  24. class _PolyExport FixedShaderBinding : public ShaderBinding {
  25. public:
  26. FixedShaderBinding(FixedShader *shader);
  27. ~FixedShaderBinding();
  28. void addTexture(String name, Texture *texture);
  29. void addCubemap(String name, Cubemap *cubemap);
  30. void addParam(String type, String name, String value);
  31. Texture *getDiffuseTexture();
  32. protected:
  33. vector<Texture*> textures;
  34. vector<Cubemap*> cubemaps;
  35. FixedShader *fixedShader;
  36. };
  37. }