mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Added Mesh objects and love.graphics.newMesh. Mesh objects are similar to Geometry but they're drawables (the relationship between meshes and images is the opposite of geometry and images.)
Removed Geometry objects and re-added Quads.
example:
local vertices = {{0, 0, 0, 0}, {100, 0, 1, 0}, {100, 100, 1, 1}, {0, 100, 0, 1}}
mesh = love.graphics.newMesh(vertices, image, "fan")
..
love.graphics.draw(mesh, 0, 0)
--HG--
branch : Mesh
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
// LOVE
|
||||
#include "graphics/Volatile.h"
|
||||
#include "graphics/DrawGable.h"
|
||||
#include "graphics/DrawQable.h"
|
||||
#include "common/StringMap.h"
|
||||
|
||||
namespace love
|
||||
@@ -31,7 +31,7 @@ namespace love
|
||||
namespace graphics
|
||||
{
|
||||
|
||||
class Image : public DrawGable, public Volatile
|
||||
class Image : public DrawQable, public Volatile
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user