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

Constructors:

  • Skybox(): Default constructor for the Skybox class.

Destructor:

  • ~Skybox(): Destructor for the Skybox class.

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

This 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 a SkyboxSolidColor object with a specified color.

Destructor:

  • ~SkyboxSolidColor(): Destructor for the SkyboxSolidColor class.

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)

This class will create a skybox with a gradient background.

Constructors:

  • SkyboxGradient(): Default constructor for the SkyboxGradient class.

Destructor:

  • ~SkyboxGradient(): Destructor for the SkyboxGradient class.

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