summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f50a0d3)
raw | patch | inline | side by side (parent: f50a0d3)
author | fredboy <fredboy@protonmail.com> | |
Tue, 14 May 2024 16:16:13 +0000 (23:16 +0700) | ||
committer | fredboy <fredboy@protonmail.com> | |
Tue, 14 May 2024 16:16:13 +0000 (23:16 +0700) |
core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt | patch | blob | history | |
core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt | [deleted file] | patch | blob | history |
diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt b/core/src/ru/deadsoftware/cavedroid/game/render/GameRenderer.kt
index 7e40f1712c418ef9575c08550272289e0f849981..c0ded1ec93e81830d0c917e06e973857e2170aca 100644 (file)
package ru.deadsoftware.cavedroid.game.render
+import com.badlogic.gdx.graphics.g2d.SpriteBatch
+import com.badlogic.gdx.graphics.glutils.ShapeRenderer
+import com.badlogic.gdx.math.Rectangle
import ru.fredboy.cavedroid.ksp.annotations.GenerateSetMultibindingsModule
@GenerateSetMultibindingsModule(
moduleName = "RenderModule"
)
annotation class GameRenderer
+
+interface IGameRenderer {
+
+ val renderLayer: Int
+
+ /**
+ * When called, [spriteBatch] is beginned!
+ */
+ fun draw(
+ spriteBatch: SpriteBatch,
+ shapeRenderer: ShapeRenderer,
+ viewport: Rectangle,
+ delta: Float
+ )
+}
\ No newline at end of file
diff --git a/core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt b/core/src/ru/deadsoftware/cavedroid/game/render/IGameRenderer.kt
+++ /dev/null
@@ -1,20 +0,0 @@
-package ru.deadsoftware.cavedroid.game.render
-
-import com.badlogic.gdx.graphics.g2d.SpriteBatch
-import com.badlogic.gdx.graphics.glutils.ShapeRenderer
-import com.badlogic.gdx.math.Rectangle
-
-interface IGameRenderer {
-
- val renderLayer: Int
-
- /**
- * When called, [spriteBatch] is beginned!
- */
- fun draw(
- spriteBatch: SpriteBatch,
- shapeRenderer: ShapeRenderer,
- viewport: Rectangle,
- delta: Float
- )
-}
\ No newline at end of file