Выпущена новая версия 4.14, изменений не много:- корректирована работа с мышью, как оказалось, если окно не занимает всё рабочее пространство, то мышь могла работать не корректно.
- добавлен флаг "ERROR_MOUSE_DXDY", если мышь вне пределов окна, то "mouseDX" и "mouseDY" будут возвращать данные значения.
- таймера теперь работают с типом Double (раньше были LongWord), для большей точности, но требуется проверка.
- возвращены функции: "u_IntToStr", "u_StrToInt", "u_FloatToStr", "u_StrToFloat", "u_BoolToStr" и "u_StrToBool" (в версии 4.13 были удалены, но это вызвало не совсем верную работу логов).
- добавлены функции: "u_DoubleToStr" и "u_StrToDouble" (мне надоело бодаться с Delphi и вместо переопределения я их сделал отдельно).
- добавлены флаги: "WINDOW_FOR_FULL_X", "WINDOW_FOR_FULL_Y", "WINDOW_FULL_WIDTH" и "WINDOW_FULL_HEIGHT" - возвращают значения полного рабочего окна (не корректированного). Теперь флаги: "WINDOW_X", "WINDOW_Y", "WINDOW_WIDTH" и "WINDOW_HEIGHT" - возвращают значения корректированного окна (значения результата функции
zgl_Get для этих флагов могут совпадать, если корректировки не производилось).
- немного корректирован код для
Mac.
Дополнительно ввёл новые функции в файл "zgl_text.pas", так как собираюсь создавать диалоговые окна: "procedure CreateDataDialog(font: LongWord; Width, Height: Integer);" и "procedure AddTextDialog(const Text: UTF8String; Flags: LongWord; Scale: Single = 1; Color: LongWord = cl_White);". Ни где примеров работы с ними нет. С их помощью можно выводить разнообразный текст в определённую область, но делал я её для вывода в текстуру.
--------------------------------------------
Google translate:
Released new version 4.14, not many changes:- corrected work with the mouse, as it turned out, if the window does not occupy the entire workspace, then the mouse could work incorrectly.
- added the flag "ERROR_MOUSE_DXDY", if the mouse is outside the window, then "mouseDX" and "mouseDY" will return these values.
- timers now work with the Double type (previously they were LongWord), for greater accuracy, but verification is required.
- returned functions: "u_IntToStr", "u_StrToInt", "u_FloatToStr", "u_StrToFloat", "u_BoolToStr" and "u_StrToBool" (in version 4.13 they were removed, but this caused not quite correct work of logs).
- added functions: "u_DoubleToStr" and "u_StrToDouble" (I got tired of butting heads with Delphi and instead of redefining them I made them separately).
- added flags: "WINDOW_FOR_FULL_X", "WINDOW_FOR_FULL_Y", "WINDOW_FULL_WIDTH" and "WINDOW_FULL_HEIGHT" - return values of the full working window (not adjusted). Now the flags: "WINDOW_X", "WINDOW_Y", "WINDOW_WIDTH" and "WINDOW_HEIGHT" - return values of the adjusted window (the values of the
zgl_Get function result for these flags may coincide if no adjustments were made).
- slightly adjusted code for
Mac.
Additionally, I added new functions to the "zgl_text.pas" file, since I am going to create dialog boxes: "procedure CreateDataDialog(font: LongWord; Width, Height: Integer);" and "procedure AddTextDialog(const Text: UTF8String; Flags: LongWord; Scale: Single = 1; Color: LongWord = cl_White);". There are no examples of working with them anywhere. With their help, you can output various text to a certain area, but I did it for output to a texture.
