mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-12 03:24:06 +09:00
more descriptive name for the blend-normal function because why there are two fucking standards for an alpha channel
This commit is contained in:
@@ -7,7 +7,7 @@ import com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration
|
||||
import com.badlogic.gdx.graphics.g2d.BitmapFont
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch
|
||||
import net.torvald.unicode.EMDASH
|
||||
import net.torvald.terrarum.gdxClearAndSetBlend
|
||||
import net.torvald.terrarum.gdxClearAndEnableBlend
|
||||
import net.torvald.terrarum.inUse
|
||||
|
||||
/**
|
||||
@@ -101,7 +101,7 @@ class GetKeycode : Game() {
|
||||
override fun render() {
|
||||
Gdx.graphics.setTitle("Get Keycode $EMDASH F: ${Gdx.graphics.framesPerSecond}")
|
||||
|
||||
gdxClearAndSetBlend(.1f,.1f,.1f,1f)
|
||||
gdxClearAndEnableBlend(.1f,.1f,.1f,1f)
|
||||
|
||||
batch.inUse {
|
||||
font.draw(batch, "Hit a key", 10f, 20f)
|
||||
|
||||
@@ -84,7 +84,7 @@ class UIElemTest : ApplicationAdapter() {
|
||||
|
||||
|
||||
override fun render() {
|
||||
gdxClearAndSetBlend(0.1f, 0.1f, 0.1f, 1f)
|
||||
gdxClearAndEnableBlend(0.1f, 0.1f, 0.1f, 1f)
|
||||
|
||||
ui.update(Gdx.graphics.deltaTime)
|
||||
ui.render(batch, camera)
|
||||
|
||||
Reference in New Issue
Block a user