Raftel Engine
 
Loading...
Searching...
No Matches
texture.hpp File Reference

Contains the definitions for the TextureImage and Texture classes. More...

#include <GL/glew.h>
#include <iostream>
#include <raftel/global_macros.hpp>
#include <vector>

Go to the source code of this file.

Classes

class  Raftel::TextureImage
 Represents an image containing texture data. More...
 
class  Raftel::Texture
 Represents an OpenGL texture object. More...
 

Enumerations

enum class  Raftel::TextureType { TEXTURE_2D , CUBEMAP }
 Specifies the type of texture. More...
 

Detailed Description

Contains the definitions for the TextureImage and Texture classes.

Date
2025-03-10
Authors
Carlos Mazcuñán Blanes, Marc Folgado Balbás

The TextureImage class holds raw image data used to create textures in OpenGL. The Texture class wraps the OpenGL texture functionality, allowing loading, binding, and managing of textures, as well as error handling for texture operations.

The TextureImage class is responsible for storing the texture's image data, width, height, and number of channels, while the Texture class encapsulates the OpenGL texture object and provides methods for handling textures in the graphics pipeline.

Definition in file texture.hpp.

Enumeration Type Documentation

◆ TextureType

enum class Raftel::TextureType
strong

Specifies the type of texture.

Enumerator
TEXTURE_2D 

Standard 2D texture.

CUBEMAP 

Cube map texture used for skyboxes and reflections.

Definition at line 76 of file texture.hpp.