mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 06:52:20 +00:00
Update documentation
This commit is contained in:
parent
8f34054fc5
commit
f754f25c97
4 changed files with 6 additions and 11 deletions
|
@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
|
||||||
## [Unreleased][]
|
## [Unreleased][]
|
||||||
|
|
||||||
- Fixed compatibility issues with devkitPPC release 39.
|
- Fixed compatibility issues with devkitPPC release 39.
|
||||||
|
- Fixed linking problem in examples with FreeType 2.13.2.
|
||||||
- Added `GRRLIB_LoadTTFFromFile()` to load a TTF from a file.
|
- Added `GRRLIB_LoadTTFFromFile()` to load a TTF from a file.
|
||||||
- Added `GRRLIB_Ellipse()` to draw an ellipse.
|
- Added `GRRLIB_Ellipse()` to draw an ellipse.
|
||||||
- Changed `GRRLIB_PrintfTTF()` and `GRRLIB_PrintfTTFW()` so they use the alpha channel from the `color` parameter.
|
- Changed `GRRLIB_PrintfTTF()` and `GRRLIB_PrintfTTFW()` so they use the alpha channel from the `color` parameter.
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
Copyright (c) 2009-2021 The GRRLIB Team
|
Copyright (c) 2009-2024 The GRRLIB Team
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
@ -183,8 +183,8 @@ Now it needs to be like this:
|
||||||
LIBDIRS := $(PORTLIBS)
|
LIBDIRS := $(PORTLIBS)
|
||||||
```
|
```
|
||||||
|
|
||||||
The FreeType library is now compiled with a dependency on bzip2,
|
The FreeType library is now compiled with dependencies,
|
||||||
so lbz2 needs to be added after lfreetype in your makefile.
|
so freetype2 must be added to pkg-config in your makefile.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
============================================*/
|
============================================*/
|
||||||
#include <grrlib.h>
|
#include <grrlib.h>
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <wiiuse/wpad.h>
|
#include <wiiuse/wpad.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
@ -280,12 +281,5 @@ static u8 CalculateFrameRate() {
|
||||||
*/
|
*/
|
||||||
static constexpr u8 ClampVar8 (f32 Value) {
|
static constexpr u8 ClampVar8 (f32 Value) {
|
||||||
Value = std::roundf(Value);
|
Value = std::roundf(Value);
|
||||||
if (Value < 0) {
|
return static_cast<u8>(std::clamp(Value, 0.0f, 255.0f));
|
||||||
Value = 0;
|
|
||||||
}
|
|
||||||
else if (Value > 255) {
|
|
||||||
Value = 255;
|
|
||||||
}
|
|
||||||
|
|
||||||
return static_cast<u8>(Value);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue