Skip to content

Release Candidate 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@Mtax-Development Mtax-Development released this 05 Jan 21:35
· 194 commits to master since this release

The 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:
| Renamed SpriteDraw and TextDraw constructors to SpriteRenderer and TextRenderer respectively.
| Sprite/Surface: Merged the Vector2 arguments for location and size of the renderSize() method into one Vector4 argument for location.
| Angle.set(): Added Angle argument type support.
| Shape constructors: Made the render() 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 the render() 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 and TextRenderer respectively.
Sprite.renderSize(): Replace the two first Vector2 arguments with one Vector4 argument, with its x1 and y1 values being set to the values of the first location argument and x2 and y2 values being set to the values of the second size argument.
Surface.renderSize() If the second Vector2 argument for location was used: Replace the two first Vector2 arguments with one Vector4 argument, with its x1 and y1 values being set to the values of the first location argument and x2 and y2 values being set to the values of the second size argument.