Minor fixes

This commit is contained in:
Natty 2022-04-26 02:20:31 +02:00
parent 3082e88be9
commit 0a3026e3d9
No known key found for this signature in database
GPG Key ID: 40AB22FA416C7019
6 changed files with 10 additions and 9 deletions

View File

@ -1,3 +1,6 @@
## 22.2.0.0-alpha.2
* `[PlutoSpritesheet]` Renamed `TemporalSprite#getSideCount` to `getFrameCount`
## 22.2.0.0-alpha.1
* `[PlutoGUI]` **Added support for bitmap fonts**
* `[PlutoGUI]` Generalized the font renderer API

View File

@ -225,7 +225,6 @@ public class AudioLoader
this.channels = info.channels();
this.sampleRate = info.sample_rate();
}
this.samplesLength = STBVorbis.stb_vorbis_stream_length_in_samples(this.handle);

View File

@ -94,7 +94,7 @@ public final class ModLoader extends PlutoLocalComponent
if (modInterface == null)
{
Logger.logf(SmartSeverity.MODULE_WARNING, "Cannot create a mod from the class '%s', it is not annotated with @%s%n".formatted(modClass.getCanonicalName(), ModEntry.class.getName()));
Logger.logf(SmartSeverity.MODULE_WARNING, "Cannot create a mod from the class '%s', it is not annotated with @%s%n", modClass.getCanonicalName(), ModEntry.class.getName());
return;
}

View File

@ -62,7 +62,7 @@ public class TemporalSprite implements Sprite<RectangleTexture>
this.recomputeFromIndex(index);
}
public int getSideCount()
public int getFrameCount()
{
return this.frames.length;
}

View File

@ -2,17 +2,16 @@ package org.plutoengine.graphics.texture;
import org.lwjgl.opengl.GL33;
import org.lwjgl.system.MemoryUtil;
import org.plutoengine.logger.Logger;
import org.plutoengine.logger.SmartSeverity;
import org.plutoengine.tpl.ImageABGR;
import org.plutoengine.tpl.ImageLoader;
import java.awt.image.BufferedImage;
import java.nio.ByteBuffer;
import java.nio.file.Path;
import java.util.Arrays;
import org.plutoengine.logger.Logger;
import org.plutoengine.logger.SmartSeverity;
import org.plutoengine.tpl.ImageABGR;
import org.plutoengine.tpl.ImageLoader;
public abstract class Texture implements AutoCloseable
{
protected int glID;

View File

@ -233,7 +233,7 @@ glyphs:
cp: 8734 # ∞ - infinity
sprite:
x: 112
y: 0
y: 8
w: 8
h: 8
leftBearing: 0