Release Candidate 2
Pre-releaseThe changes in this version introduce several basic functionalities to often used constructors.
Multiple additions aim to make working with Shaders easier. Every constructor with the getTexture()
method received the getTexel()
method. Vector constructors have new methods allowing for setting all their values to integer ones, which is useful in ensuring Shaders operate properly when used with their values.
It should be noted that the constructors SpriteDraw
and TextDraw
had their name changed to the SpriteRenderer
and TextRenderer
respectively, although their functionality has not been changed.
Changes from Release Candidate 1:
Changes to existing content:
| RenamedSpriteDraw
andTextDraw
constructors toSpriteRenderer
andTextRenderer
respectively.
|Sprite
/Surface
: Merged theVector2
arguments forlocation
andsize
of therenderSize()
method into oneVector4
argument forlocation
.
|Angle.set()
: AddedAngle
argument type support.
| Shape constructors: Made therender()
method use rounded location values for consistency with other types of rendering.Additions:
+Vector4
: "From Scale or Vector2" construction type.
+Vector2
/Vector4
:dotProduct()
,setFloor()
,setRound()
,setCeil()
methods.
+Vector4
:setCursor()
method.
+ArrayParser
:removeValue()
method.
+Font
/Sprite
/Surface
:getTexel()
method.
+ErrorReport
:reportError()
method.Fixes:
-Ellipse
/Rectangle
: Added missing temporary argument assignments in therender()
method.
- General minor code and documentation fixes.Instructions for conversion from the previous version:
•SpriteDraw
/TextDraw
: Change all references to use their new constructor names:SpriteRenderer
andTextRenderer
respectively.
•Sprite.renderSize()
: Replace the two firstVector2
arguments with oneVector4
argument, with itsx1
andy1
values being set to the values of the firstlocation
argument andx2
andy2
values being set to the values of the secondsize
argument.
•Surface.renderSize()
If the secondVector2
argument forlocation
was used: Replace the two firstVector2
arguments with oneVector4
argument, with itsx1
andy1
values being set to the values of the firstlocation
argument andx2
andy2
values being set to the values of the secondsize
argument.