ShaderEffects now take a dynamically sized list of source codes instead of one vertex and one fragment shader string

This commit is contained in:
Alexander Szpakowski
2012-12-22 22:47:07 -04:00
parent b55de47fb9
commit 83204c5dc5
5 changed files with 108 additions and 49 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ public:
Canvas *newCanvas(int width, int height, Canvas::TextureType texture_type = Canvas::TYPE_NORMAL);
ShaderEffect *newShaderEffect(const std::string &vertcode, const std::string &fragcode);
ShaderEffect *newShaderEffect(const std::vector<ShaderEffect::ShaderSource> shadersources);
/**
* Sets the foreground color.