Skip to content

🚀Preview Release - v1.0.0-preview.35

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 20 Apr 06:23
· 80 commits to preview since this release
1fbc94f

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 ✨

  1. #934 - Added a new enum named AudioBuffer for choosing audio buffer types.
  2. #934 - Added a new property with the name BufferType to the IAudio interface and Audio 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.
  3. #934 - Added a new Load(string atlasPathOrName) method to the ILoader<IAtlasDta> interface for loading texture atlas data.
  4. #934 - Added a new Load(string audioPathOrName, AudioBuffer bufferType) method to the ILoader<IAudio> interface for loading audio.
  5. #934 - Added a new Load(string texturePathOrName) method to the ILoader<ITexture> interface for loading textures.

Bug Fixes 🐛

  1. #882 - Fixed the following bugs:
    • Fixed a bug where invoking the ImageData.FlipHorizontally() method would throw a null reference exception when an instance of ImageData struct was created via a default constructor or the default keyword.
    • Fixed a bug where invoking the ImageData.FlipVertically() method would throw a null reference exception when an instance of ImageData struct was created via a default constructor or the default keyword.

Breaking Changes 🧨

  1. #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).
  2. #933 - Removed the deprecated controls UI API.

  3. #882 - Removed the width and height ctor params from the ImageData struct.

    • The dimensions are now internally pulled from the pixels parameter.
  4. #938 - Removed the following constructors in the content API.

    • Removed the AtlasLoader class from public to internal.
    • Removed the TextureLoader class from public to internal.
    • Removed the AudioLoader class from public to internal.
    • Removed the FontLoader class from public to internal.
    • Removed the AtlasData class constructor from public to internal.
  5. #934 - Introduced the following breaking changes related to CASL audio API updates.

    • Renamed the ISound interface to IAudio.
    • Renamed the Sound class to Audio.
    • Changed the data type of the Position and Length properties to TimeSpan.
    • Replaced the State property from the ISound interface and Sound 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 the ISound interface and Sound class. This method was performing the same operation as the Stop() method.
    • Removed the public constructor from the Sound class.
      • This was done to force users to use the content loader system.
    • Refactored the name of the LoadSoundException to LoadAudioException.
    • Refactored the name of the SoundLoader class to AudioLoader.
    • Refactored the name of the PathResolverFactory.CreateSoundPathResolver() method to PathResolverFactory.CreateAudioPathResolver().
    • Refactored the name of the ContentLoaderFactory.CreateSoundLoader() method to ContentLoaderFactory.CreateAudioLoader().
    • The default name of the content folder Sound which is where audio content is located has been changed to Audio.
    • Refactored the ILoader<IAudio>.Unload() method parameter named sound to audio.

Dependency Updates 📦

  1. #946 - Updated dependency freetypesharp to v3.0.0
  2. #942 - Updated dependency xunit to v2.7.1
  3. #942 - Updated dependency xunit.runner.visualstudio to v2.5.8
  4. #940 - Updated dependency sixlabors.imagesharp to v3.1.4
  5. #936 - Updated dependency CASL to v1.0.0-preview.19
  6. #932 - Updated dependency KinsonDigital.Carbonate to v1.0.0-preview.18
  7. #929 - Updated dependency system.io.abstractions to v21.0.0
  8. #928 - Updated dependency freetypesharp to v2.0.0
  9. #927 - Updated dependency coverlet.msbuild to v6.0.2
  10. #926 - Updated dependency coverlet.collector to v6.0.2

Other 🪧

  1. #924 - Removed reporator badge.
  2. #909 - Updated demo video link.
  3. #897 - Updated animation scene.
  4. #881,#868 - Refactored moq code to nsubstitute.

    Thank you @AndreBonda!!

  5. #783 - Replaced custom guards.

    Thank you @thestbar!!