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 theSkybox
class.
Destructor:
~Skybox()
: Destructor for theSkybox
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
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 aSkyboxSolidColor
object with a specified color.
Destructor:
~SkyboxSolidColor()
: Destructor for theSkyboxSolidColor
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)
SkyboxGradient
Class (To be implemented)This class will create a skybox with a gradient background.
Constructors:
SkyboxGradient()
: Default constructor for theSkyboxGradient
class.
Destructor:
~SkyboxGradient()
: Destructor for theSkyboxGradient
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