Objects::Skybox
Skybox in Unified Engine
The Skybox class provides a foundation to create and manage different types of skyboxes within the Unified Engine. A skybox represents a large box, centered on the camera, with a texture mapped on the inside to create the illusion of distant three-dimensional surroundings.
Base Skybox Class
Skybox ClassConstructors:
Skybox(): Default constructor for theSkyboxclass.
Destructor:
~Skybox(): Destructor for theSkyboxclass.
Methods:
virtual int Update(): Virtual function to update the state of the skybox. Returns an integer (usually 0).virtual int Render(): Virtual function to render the skybox to the scene. Returns an integer (usually 0).
SkyboxSolidColor Class
SkyboxSolidColor ClassThis class creates a skybox with a solid color background.
Members:
glm::vec3 Color: Represents the color of the solid-color skybox.
Constructors:
SkyboxSolidColor(glm::vec3 Color): Constructs aSkyboxSolidColorobject with a specified color.
Destructor:
~SkyboxSolidColor(): Destructor for theSkyboxSolidColorclass.
Methods:
int Update(): Updates the state of the solid-color skybox.int Render(): Renders the solid-color skybox to the scene.
SkyboxGradient Class (To be implemented)
SkyboxGradient Class (To be implemented)This class will create a skybox with a gradient background.
Constructors:
SkyboxGradient(): Default constructor for theSkyboxGradientclass.
Destructor:
~SkyboxGradient(): Destructor for theSkyboxGradientclass.
Methods:
int Update(): Updates the state of the gradient skybox.int Render(): Renders the gradient skybox to the scene.
Note:
Further extensions can be added, like SkyboxTextured for a textured skybox.
Last updated