Skip to content

Commit

Permalink
refactor: optimize StarsLoader and adjust package structure
Browse files Browse the repository at this point in the history
Moved `StarsLoader` to the correct package `com.github.lookupgroup27.lookup.model.map.stars`.
Removed unnecessary import of `StarDataRepository`.
Simplified the creation of `Star` objects by removing the redundant `color` parameter.

Affected files:
- `StarsLoader.kt`: Adjusted package declaration, imports, and star creation logic.
  • Loading branch information
AdrienBousquieEPFL committed Dec 18, 2024
1 parent 2c996b7 commit e7cfafa
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.github.lookupgroup27.lookup.model.loader
package com.github.lookupgroup27.lookup.model.map.stars

import android.content.Context
import com.github.lookupgroup27.lookup.model.map.renderables.Star
import com.github.lookupgroup27.lookup.model.map.stars.StarDataRepository

/**
* Converts star data into renderable objects for OpenGL rendering.
Expand All @@ -26,7 +25,6 @@ class StarsLoader(private val context: Context, private val repository: StarData
Star(
context = context,
position = floatArrayOf(starData.x.toFloat(), starData.y.toFloat(), starData.z.toFloat()),
color = floatArrayOf(1.0f, 1.0f, 1.0f),
size = 0.002f)
}
}
Expand Down

0 comments on commit e7cfafa

Please sign in to comment.