mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Internally compose and pass an array of shader source codes to OpenGL, instead of relying on #line to make sure the line number is correct for shader error messages (resolves issue #882)
This commit is contained in:
@@ -210,7 +210,7 @@ public:
|
||||
|
||||
Canvas *newCanvas(int width, int height, Texture::Format format = Texture::FORMAT_NORMAL, int fsaa = 0);
|
||||
|
||||
Shader *newShader(const Shader::ShaderSources &sources);
|
||||
Shader *newShader(const std::vector<std::string> &vertcode, const std::vector<std::string> &pixelcode);
|
||||
|
||||
Mesh *newMesh(const std::vector<Vertex> &vertices, Mesh::DrawMode mode = Mesh::DRAW_MODE_FAN);
|
||||
Mesh *newMesh(int vertexcount, Mesh::DrawMode mode = Mesh::DRAW_MODE_FAN);
|
||||
|
||||
Reference in New Issue
Block a user