Skip to content

26.12

Latest

Choose a tag to compare

@Mhatxotic Mhatxotic released this 01 Dec 14:09
26.12
f19d441

Highlights

  • Display Reset window completely on Wayland on DisplayRequestReposition() due to GLFW or Wayland oddities.
  • API Add Util.Shorten() and Util.ShortenEx() functions.
  • API Add Texture:TileAM() and Texture:TileADM() to add multiple tiles at once from a table without having to repetitively call the same function. Shares the same code with Texture.ImageUT.
  • API Add Fbo:GetWidth() and Fbo:GetHeight() to just get Fbo dimensions.
  • API Add Display.OnScaled() to get an event when the window scale changes.
  • Display Only fire guest callbacks when actual event occurs.
  • API Add Image.Image() function to duplicate an image class.
  • API Change the names of most the entire LUA API to be more reflective on what the function does at glance.
  • API Add Variable.GetInteger(), Variable.GetNumber(), Variable.GetBoolean() and rename Variable.Get() to Variable.GetString() which will cast the values for you instead of needing to use tonumber().
  • Time Add descriptive time function for fractional time measurements (ms, µs, ns and ps).
  • Time Change many uses of TimeToShortDuration to the new functions so logging can see more succinct time measurements.
  • API Add Font:Add() method so you can add extra fonts as backups if the characters in the main font are not found. Very useful for displaying characters in other languages. Tested with a random Japanese font and works really well.
  • API Add Util.StretchCover to cover the source rectangle to the destination rectangle while keeping aspect ratio.
  • API Rename Util.FormatNumberI to Util.FormatInt.
  • API Rename Util.Duration* functions to Dura(Int)(Num)(Short/Long)(Ex).
  • LUA Deny Lua the ability to feed static engine allocated classes into the functions that consume them.
  • CVars Allow the socket user agent to be changed.
  • Log Optimise some log messages. Especially Oal extension and capability logging.
  • System Don't zero memory any more when checking to see if enough memory is available.
  • UTF Optimise Utf routines some more by making UtfDecode a class and putting it and the UtfCodepoint defintion in UtfCP.hpp.
  • Setup Remove warning control from compiler flags in PMU and control warnings from setup.hpp instead.
  • ImgFmtJpg Add comment and XMP metadata to written JPEG files.
  • ImgFmtPng Alter metadata to written PNG files.
  • API Add Util.RegexSafe that makes a string safe for Lua's string.match() regex parser.
  • CVars Show in log the source of the change when registering and setting cvars, e.g. Command-line, manifest, database or console.
  • API Add Util.TimeIt function.
  • Sql Fix creating another Sql object with Lua overwriting the main 'Sql' class global pointer.
  • API Add Texture:GetPaddingWidth(), Texture:GetPaddingHeight(), Texture:GetTileWidth(), Texture:GetTileHeight() Lua functions.
  • API Rename Fbo:SetClearColour to Fbo:SetCCRGBA and add Fbo:SetCCRGBAI function.
  • CVars Extend maximum aspect ratio from 2.0 to 2.4444 (22:9).
  • CVars Fix segmentation fault with manually setting app_cmdline cvar which shouldn't be allowed.
  • Sample Fix not post-processing on reload.
  • Image Fix not post-processing on reload.
  • Console Allow source # console command to show details about the source.
  • API Add Source:(Get|Set)Bytes, Source:(Get|Set)Sample and Source:(Get|Set)Elapsed API functions.
  • Video Fix Video:Advance() not rendering a frame.
  • Video Automatically advance and pre-render a frame when re-initialising a video that is paused.
  • Video Improve video synchronisation by using a cubic curve.