Commit Graph

2432 Commits

Author SHA1 Message Date
Alex Szpakowski a9e4be760e Updated the list of SDL backends which should default to OpenGL ES to include emscripten. 2015-06-02 23:06:31 -03:00
Alex Szpakowski 48a0910907 Renamed love.textedit to love.textedited. (text composition event callback) 2015-05-29 23:33:01 -03:00
Alex Szpakowski 8c3dd76327 Updated LZ4 to the latest version. 2015-05-29 18:01:02 -03:00
Alex Szpakowski 457903a425 Renamed love.touch.getIDs to love.touch.getTouches. 2015-05-28 20:54:41 -03:00
Alex Szpakowski 7e42d82308 Added an optional third argument to the width/height variant of love.image.newImageData. The new argument is a string containing raw byte pixel data to copy to the new ImageData (e.g. the result of a previous ImageData:getString with an ImageData of the same width and height..) 2015-05-27 21:21:47 -03:00
Alex Szpakowski f141cb3a16 Added a small 'contributing' section to the readme. 2015-05-27 18:39:03 -03:00
Alex Szpakowski f334a24f79 Potentially better calculation for the default number of points in the rounded-rect variant of love.graphics.rectangle. 2015-05-27 18:30:17 -03:00
Alex Szpakowski 4fe8e7214d Error if the rx and ry parameters of love.graphics.rectangle are >= half the rectangle's width or height, respectively. 2015-05-27 17:47:51 -03:00
Alex Szpakowski 0f986b10aa Cleaned up some code, the 'ry' parameter of love.graphics.rectangle now defaults to the value of 'rx' rather than defaulting to 0. 2015-05-27 17:36:27 -03:00
muddmaker 2a4524e5c0 Make ry optional, and ellipse can replace circle. 2015-05-23 17:28:58 -07:00
muddmaker 0119e47f87 Make roudned rectangle a variant of rectangle 2015-05-23 17:05:03 -07:00
muddmaker cb3ae86726 Add rx and ry parameters to roudnedRectangle 2015-05-23 16:52:27 -07:00
muddmaker dd41ccfbf7 Fix another typo. 2015-05-23 16:20:19 -07:00
muddmaker 439cc65382 Fix typo 2015-05-23 16:06:36 -07:00
muddmaker fbc419fda6 Add eclipse and roundedRectangle to love.graphics 2015-05-23 12:52:27 -07:00
Alex Szpakowski c3fd7a25a3 Fixed some misc. compiler warnings. 2015-05-23 12:45:58 -03:00
Alex Szpakowski 17fe6bd30a Hopfully fixed some Xcode syntax highlighting and in-line error detection issues. 2015-05-18 21:46:04 -03:00
Bart van Strien 2a33af3920 Fix broken wav decoding on partial decodes, seemed to mostly/only affect 8-bit wav 2015-05-17 19:52:31 +02:00
Alex Szpakowski 30b083bd23 Fixed the new love.graphics.newMesh variant that accepts a Data object. 2015-05-15 14:45:11 -03:00
Alex Szpakowski f2538ac2fa love.window.getFullscreenModes, getDesktopDimensions, and setPosition now default the display index parameter to the display the window is currently in, rather than the primary display. 2015-05-12 21:59:09 -03:00
Alex Szpakowski 3704595189 Enabled OpenGL ES 3 support for Windows/Linux/Android when SDL 2.0.4+ is used, since that SDL version fixed its EGL code for GLES 3+. 2015-05-11 21:14:10 -03:00
Alex Szpakowski 811b2db466 The full executable path, rather than argv[0], is now used when determining whether the executable is fused (resolves issue #1043.) 2015-05-04 10:38:28 -03:00
Alex Szpakowski 60e8cc24bf Removed iOS-specific code to decode and encode images using the ImageIO framework (it's now redundant.) 2015-05-03 20:49:06 -03:00
Alex Szpakowski 542596531c Updated changelog 2015-05-03 20:29:03 -03:00
Alex Szpakowski cf3dac8a4b Merged in LPGhatguy/love/LPGhatguy/add-notice-from-issue-877-1430691607768 (pull request #47)
Changelog: add notice from issue #877
2015-05-03 20:06:15 -03:00
Lucien Greathouse 8e57072631 Add notice from issue #877
--HG--
branch : LPGhatguy/add-notice-from-issue-877-1430691607768
2015-05-03 22:20:08 +00:00
Alex Szpakowski 5dbf589d47 Removed libjpeg-turbo as a dependency (closes issue #1031.) Removed jpeg support for ImageData:encode. stb_image now handles jpeg image loading. 2015-05-03 17:52:20 -03:00
Alex Szpakowski cc634d1871 Updated stb_image to 2.0.5. 2015-05-03 17:14:49 -03:00
Alex Szpakowski a35ccb4426 Added Font:setFallbacks(otherfont, ...). Resolves issue #1041.
Note that general font metrics are largely still based on the original (non-fallback) font, whereas glyph sizes are based on the fallback fonts when those are used to get the glyph.
2015-05-02 18:07:35 -03:00
Alex Szpakowski 4e1011a52e Re-added Mesh:setVertices. 2015-05-02 14:05:29 -03:00
Alex Szpakowski eee1fbac79 love.filesystem is now loaded by default in threads (see issue #1040.) 2015-05-01 21:20:23 -03:00
Alex Szpakowski 34bf847913 Removed redundant definition of ChainShape:getChildCount. 2015-04-27 19:08:02 -03:00
Alex Szpakowski 6e92bd8302 Improved the argument type checking for World:setCallbacks, World:setContactFilter, World:queryBoundingBox, and World:rayCast. 2015-04-27 18:48:13 -03:00
Alex Szpakowski 90a3c2b8ba Added Text:setFont. 2015-04-27 04:19:03 -03:00
Alex Szpakowski f29567160a Fixed love.audio.stop() not rewinding streaming Sources. 2015-04-26 21:22:04 -03:00
Alex Szpakowski 33e1d2736d Removed restrictions preventing sRGB and non-sRGB canvases from being used together when doing multi-canvas rendering. 2015-04-25 21:32:10 -03:00
Alex Szpakowski 5c49898cdf Fixed lines drawn using the 'none' line join mode having missing sections of each line segment. 2015-04-25 18:56:47 -03:00
Alex Szpakowski 8e42f591ce Updated the iOS xcode project search paths for the luajit headers and static library. 2015-04-25 12:00:07 -03:00
Alex Szpakowski e7f56241ec Removed the callback argument from love.filesystem.getDirectoryItems (resolves issue #877.)
Cleaned up the getDirectoryItems ccde to no longer call Lua API functions from Filesystem.cpp (now it's all in wrap_Filesystem.cpp.)
2015-04-25 00:16:10 -03:00
Alex Szpakowski 289eeb4fe0 Added Channel:performAtomic(func, ...). Resolves issue #1034.
performAtomic calls the function and passes the Channel as the first argument, plus any additional specified arguments. The called function should do as little work as possible.

To other threads, all methods for that Channel are executed in a single step inside the function. This can prevent a large number of potiential race conditions.

Example:

-- main.lua:
local function set(channel, value)
    channel:clear()
    channel:push(value)
    return "set value"
end

assert(channel:performAtomic(set, 1) == "set value")

-- thread.lua
while true do
    assert(channel:peek() == 1)
end
2015-04-24 23:53:28 -03:00
Alex Szpakowski 97806f87c0 Replaced Simplex noise with Perlin noise for the 3D and 4D variants of love.math.noise, to avoid patent-infringement issues (resolves issue #997.) 2015-04-17 17:01:41 -03:00
Alex Szpakowski c62b005ff3 Changed the default mipmap filter to be 'linear' instead of 'nearest'. 2015-04-13 12:51:48 -03:00
Alex Szpakowski d8a68d6ce1 Updated iOS-specific graphics code to use the latest SDL changes. 2015-04-13 12:26:54 -03:00
Alex Szpakowski 2a482f8e98 Updated stb_image to version 2.0.3. 2015-04-12 15:48:25 -03:00
Alex Szpakowski f2ab02da13 Mostly fixed the precision of love's uniform matrices not matching between shader stages in OpenGL ES. 2015-04-10 13:00:36 -03:00
Alex Szpakowski 4c9b2105cd Updated the changelog 2015-04-08 22:44:16 -03:00
Alex Szpakowski 2844499ef7 Added the ability to have custom vertex attributes in Meshes (resolves issue #768.)
Added new love.graphics.newMesh variants: newMesh(vertexformat, vertices [, drawmode, meshusage]) and newMesh(vertexformat, numvertices [, drawmode, meshusage]).

Replaced the regular love.graphics.newMesh variants with newMesh(vertices [, drawmode, meshusage]) and newMesh(numvertices [, drawmode, meshusage]). To use an image or canvas with a mesh, use Mesh:setTexture.

vertexformat is a table with the following prototype:
{
  {attributename, datatype, components},
  {attributename, datatype, components},
  ...
}

Where attributename is the name of the vertex attribute (can be the built-in names 'VertexPosition', 'VertexTexCoord', or 'VertexColor', or a custom name for use in a vertex shader), datatype is the type of values used for the attribute ('float' or 'byte'), and components is the number of components in the vertex attribute (between 1 and 4.)

The vertex format is used to determine the layout of the vertices in the mesh, for example the 'regular' newMesh variants use this vertex format:
format = {
  {"VertexPosition", "float", 2},
  {"VertexTexCoord", "float", 2},
  {"VertexColor", "byte", 4},
}

The mesh usage parameter accepts the same constants as the spritebatch usage hint in love.graphics.newSpriteBatch - "dynamic", "static", and "stream".

Mesh:setVertex now sets *all* vertex attributes for a specific vertex in the Mesh.

Added Mesh:setVertexAttribute(vertexindex, attributeindex, attributevalue1, ...), which sets the values for a specific vertex attribute in a specific vertex in the Mesh (resolves issue #784.)

Added Mesh:getVertexFormat and Mesh:flush.

Added Mesh:setAttributeEnabled(attributename, enable) and Mesh:isAttributeEnabled(attributename), to enable or disable the use of a specific attribute when drawing the Mesh.

Added Mesh:attachAttribute(attributename, mesh), which makes the Mesh use a vertex attribute from another mesh when drawing the Mesh. This can be used to separate out vertex attributes which are updated at different rates into different meshes, and to share vertex data between multiple meshes.

Removed Mesh:setVertices, Mesh:getVertices, and Mesh:setVertexColors.
2015-04-08 22:24:17 -03:00
Alex Szpakowski f8ff50cfde Fixed Image:refresh for sRGB images when OpenGL ES 2 is being used. 2015-04-05 17:35:19 -03:00
Alex Szpakowski cf0968fc6d Avoid some VC++ compiler warnings 2015-04-02 00:28:09 -03:00
Alex Szpakowski 2a6bffaa5a Prevent sRGB and non-sRGB Canvas formats from being used together in multi-canvas rendering (MRTs), due to driver bugs. 2015-03-29 23:51:08 -03:00