mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
changed PixelEffect name to ShaderEffect, added lua-side support for vert/frag shader combinations with love.graphics.newShaderEffect, added tentative support for single-file vertex+fragment shaders
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
#include "SpriteBatch.h"
|
||||
#include "ParticleSystem.h"
|
||||
#include "Canvas.h"
|
||||
#include "PixelEffect.h"
|
||||
#include "ShaderEffect.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
@@ -271,7 +271,7 @@ public:
|
||||
|
||||
Canvas *newCanvas(int width, int height, Canvas::TextureType texture_type = Canvas::TYPE_NORMAL);
|
||||
|
||||
PixelEffect *newPixelEffect(const std::string &code);
|
||||
ShaderEffect *newShaderEffect(const std::string &vertcode, const std::string &fragcode);
|
||||
|
||||
/**
|
||||
* Sets the foreground color.
|
||||
|
||||
Reference in New Issue
Block a user