Skip to content

Commit

Permalink
codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-sts committed Mar 17, 2024
1 parent 08ecacf commit edf3f9f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ package solve.rendering.engine.core.renderers
import org.joml.Vector2f
import solve.rendering.engine.Window
import solve.rendering.engine.utils.plus
import solve.scene.model.Layer

abstract class LandmarkLayerRenderer (
abstract class LandmarkLayerRenderer(
window: Window
) : Renderer(window) {
private var gridWidth = FramesRenderer.DefaultGridWidth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import solve.rendering.engine.shader.ShaderType
import solve.rendering.engine.utils.plus
import solve.rendering.engine.utils.times
import solve.scene.model.Landmark
import solve.scene.model.Layer
import solve.scene.model.Layer.PointLayer

class PointsLayerRenderer(
Expand Down Expand Up @@ -74,8 +73,8 @@ class PointsLayerRenderer(
val pointShaderPosition = framePixelToShaderPosition(pointsLayerIndex, pointLandmarkPosition)

circleBoundsVerticesLocalPositions.forEach { vertexLocalPosition ->
val vertexPosition = pointShaderPosition +
Vector2f(vertexLocalPosition) * pointsRadius / window.camera.zoom / DefaultLocalVerticesPositionsDivider
val vertexPosition = pointShaderPosition + Vector2f(vertexLocalPosition) *
pointsRadius / window.camera.zoom / DefaultLocalVerticesPositionsDivider
batch.pushVector2f(vertexPosition)
batch.pushVector2f(vertexLocalPosition)
batch.pushFloat(pointLandmarkIndex.toFloat())
Expand Down
1 change: 0 additions & 1 deletion src/main/kotlin/solve/rendering/engine/scene/Scene.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package solve.rendering.engine.scene

import solve.rendering.engine.core.renderers.FramesRenderer
import solve.rendering.engine.core.renderers.LandmarkLayerRenderer
import solve.rendering.engine.core.renderers.Renderer

class Scene(val framesRenderer: FramesRenderer) {
private val _landmarkRenderers = mutableListOf<LandmarkLayerRenderer>()
Expand Down

This file was deleted.

0 comments on commit edf3f9f

Please sign in to comment.