mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Canvases can now be used in SpriteBatches, ParticleSystems, and Meshes (resolves issue #782).
Canvases and Images are now subclasses of the new Texture class. Added setTexture and getTexture methods for Meshes, ParticleSystems, and SpriteBatches (the old set/getImage methods are deprecated but not removed.) Canvas texture coordinates are no longer flipped.
This commit is contained in:
+3
-4
@@ -249,15 +249,13 @@ source_group("modules\\font\\freetype" FILES ${LOVE_SRC_MODULE_FONT_FREETYPE})
|
||||
|
||||
set(LOVE_SRC_MODULE_GRAPHICS_ROOT
|
||||
src/modules/graphics/Color.h
|
||||
src/modules/graphics/Drawable.cpp
|
||||
src/modules/graphics/Drawable.h
|
||||
src/modules/graphics/DrawQable.h
|
||||
src/modules/graphics/Graphics.cpp
|
||||
src/modules/graphics/Graphics.h
|
||||
src/modules/graphics/Image.cpp
|
||||
src/modules/graphics/Image.h
|
||||
src/modules/graphics/Quad.cpp
|
||||
src/modules/graphics/Quad.h
|
||||
src/modules/graphics/Texture.cpp
|
||||
src/modules/graphics/Texture.h
|
||||
src/modules/graphics/Volatile.cpp
|
||||
src/modules/graphics/Volatile.h
|
||||
)
|
||||
@@ -285,6 +283,7 @@ set(LOVE_SRC_MODULE_GRAPHICS_OPENGL
|
||||
src/modules/graphics/opengl/Shader.h
|
||||
src/modules/graphics/opengl/SpriteBatch.cpp
|
||||
src/modules/graphics/opengl/SpriteBatch.h
|
||||
src/modules/graphics/opengl/Texture.h
|
||||
src/modules/graphics/opengl/VertexBuffer.cpp
|
||||
src/modules/graphics/opengl/VertexBuffer.h
|
||||
src/modules/graphics/opengl/wrap_Canvas.cpp
|
||||
|
||||
Reference in New Issue
Block a user