Description:
Implement a Planet class to represent individual planets in the skymap. This class will encapsulate the data and functionality required to render a planet, including its position, size, texture (for appearance), and metadata (e.g., name). The Planet object will serve as the foundational data structure for displaying planets within the OpenGL scene.
Acceptance Criteria
A Planet class is implemented with the following properties:
name: String - The name of the planet (e.g., "Earth").
position: FloatArray - The planet's position in 3D space (x, y, z coordinates).
radius: Float - The size of the planet for rendering.
textureId: Int? - An optional OpenGL texture ID for the planet's texture.
Description: Implement a Planet class to represent individual planets in the skymap. This class will encapsulate the data and functionality required to render a planet, including its position, size, texture (for appearance), and metadata (e.g., name). The Planet object will serve as the foundational data structure for displaying planets within the OpenGL scene.
Acceptance Criteria A Planet class is implemented with the following properties: name: String - The name of the planet (e.g., "Earth"). position: FloatArray - The planet's position in 3D space (x, y, z coordinates). radius: Float - The size of the planet for rendering. textureId: Int? - An optional OpenGL texture ID for the planet's texture.