🚀Preview Release - v1.0.0-preview.35
Pre-release
Pre-release
github-actions
released this
20 Apr 06:23
·
80 commits
to preview
since this release
Velaptor Preview Release Notes - v1.0.0-preview.35
Quick Reminder
As with all software, there is always a chance for issues and bugs, especially for preview releases, which is why your input is greatly appreciated. 🙏🏼
New Features ✨
- #934 - Added a new
enum
namedAudioBuffer
for choosing audio buffer types. - #934 - Added a new property with the name
BufferType
to theIAudio
interface andAudio
class.- This is used to know what type of buffering is being used for the audio. This is a new feature that comes from CASL v1.0.0-preview.18.
- #934 - Added a new
Load(string atlasPathOrName)
method to theILoader<IAtlasDta>
interface for loading texture atlas data. - #934 - Added a new
Load(string audioPathOrName, AudioBuffer bufferType)
method to theILoader<IAudio>
interface for loading audio. - #934 - Added a new
Load(string texturePathOrName)
method to theILoader<ITexture>
interface for loading textures.
Bug Fixes 🐛
- #882 - Fixed the following bugs:
- Fixed a bug where invoking the
ImageData.FlipHorizontally()
method would throw a null reference exception when an instance ofImageData
struct was created via a default constructor or thedefault
keyword. - Fixed a bug where invoking the
ImageData.FlipVertically()
method would throw a null reference exception when an instance ofImageData
struct was created via a default constructor or thedefault
keyword.
- Fixed a bug where invoking the
Breaking Changes 🧨
-
#947 - 1. Removed the following constructors from the
Texture
class:- Removed constructor with the signature
Texture(string name, ImageData imageData)
. - Removed constructor with the signature
Texture(string name, string filePath)
.
- Removed constructor with the signature
-
#933 - Removed the deprecated controls UI API.
-
#882 - Removed the
width
andheight
ctor params from theImageData
struct.- The dimensions are now internally pulled from the
pixels
parameter.
- The dimensions are now internally pulled from the
-
#938 - Removed the following constructors in the content API.
- Removed the
AtlasLoader
class frompublic
tointernal
. - Removed the
TextureLoader
class frompublic
tointernal
. - Removed the
AudioLoader
class frompublic
tointernal
. - Removed the
FontLoader
class frompublic
tointernal
. - Removed the
AtlasData
class constructor frompublic
tointernal
.
- Removed the
-
#934 - Introduced the following breaking changes related to CASL audio API updates.
- Renamed the
ISound
interface toIAudio
. - Renamed the
Sound
class toAudio
. - Changed the data type of the
Position
andLength
properties toTimeSpan
. - Replaced the
State
property from theISound
interface andSound
class with the following bool properties to represent the state of the audio.IsPlaying
IsPaused
IsStopped
- The
State
property was removed due to the unintentional exposure of the CASL API.
- Removed the
Reset()
method from theISound
interface andSound
class. This method was performing the same operation as theStop()
method. - Removed the
public
constructor from theSound
class.- This was done to force users to use the content loader system.
- Refactored the name of the
LoadSoundException
toLoadAudioException
. - Refactored the name of the
SoundLoader
class toAudioLoader
. - Refactored the name of the
PathResolverFactory.CreateSoundPathResolver()
method toPathResolverFactory.CreateAudioPathResolver()
. - Refactored the name of the
ContentLoaderFactory.CreateSoundLoader()
method toContentLoaderFactory.CreateAudioLoader()
. - The default name of the content folder
Sound
which is where audio content is located has been changed toAudio
. - Refactored the
ILoader<IAudio>.Unload()
method parameter namedsound
toaudio
.
- Renamed the
Dependency Updates 📦
- #946 - Updated dependency freetypesharp to v3.0.0
- #942 - Updated dependency xunit to v2.7.1
- #942 - Updated dependency xunit.runner.visualstudio to v2.5.8
- #940 - Updated dependency sixlabors.imagesharp to v3.1.4
- #936 - Updated dependency CASL to v1.0.0-preview.19
- #932 - Updated dependency KinsonDigital.Carbonate to v1.0.0-preview.18
- #929 - Updated dependency system.io.abstractions to v21.0.0
- #928 - Updated dependency freetypesharp to v2.0.0
- #927 - Updated dependency coverlet.msbuild to v6.0.2
- #926 - Updated dependency coverlet.collector to v6.0.2