matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Functions
engine::resources Namespace Reference

Classes

class  AssimpSceneProcessor
 Processes the meshes in an Assimp scene. More...
 
class  Mesh
 Represents a mesh in the model in the OpenGL context. More...
 
class  Model
 Represents a model object within the OpenGL context as an array of Mesh objects. More...
 
class  ResourcesController
 Manages app resources: Model, Texture, Shader, and Skybox. More...
 
class  Shader
 Represents a linked shader program object within the OpenGL context. More...
 
class  ShaderCompiler
 Compiles GLSL shaders from a single source file. Vertex, Fragment and Geometry shaders are seperated by the // #shader vertex|fragment|geometry directive. All the code following the directive belongs to the source of the shader specified in the #shader directive. Here is an example: More...
 
struct  ShaderParsingResult
 Contains the parsed vertex, fragment, and geometry shaders, since the ShaderCompiler expects a single .glsl source file. More...
 
class  Skybox
 Represents a skybox object within the OpenGL context. More...
 
class  Texture
 Represents a texture object within the OpenGL context. More...
 
struct  Vertex
 Represents a vertex in the mesh. More...
 

Typedefs

using ShaderName = std::string
 

Enumerations

enum class  ShaderType { Vertex , Fragment , Geometry }
 The type of the shader. More...
 
enum class  TextureType {
  Regular , Diffuse , Specular , Normal ,
  Height
}
 

Functions

std::string_view to_string (ShaderType type)
 Converts a ShaderType to a string.
 
int to_opengl_type (ShaderType type)
 
std::string_view texture_type_to_string (TextureType type)
 

Typedef Documentation

◆ ShaderName

using engine::resources::ShaderName = typedef std::string

Enumeration Type Documentation

◆ ShaderType

enum class engine::resources::ShaderType
strong

The type of the shader.

Enumerator
Vertex 
Fragment 
Geometry 

◆ TextureType

enum class engine::resources::TextureType
strong

used by the Model class to identify the type of the texture and bind it to the correct uniform sampler.

Enumerator
Regular 
Diffuse 
Specular 
Normal 
Height 

Function Documentation

◆ to_string()

std::string_view engine::resources::to_string ( ShaderType  type)

Converts a ShaderType to a string.

Parameters
typeThe type of the shader.
Returns
The string representation of the shader type.

◆ to_opengl_type()

int engine::resources::to_opengl_type ( ShaderType  type)

◆ texture_type_to_string()

std::string_view engine::resources::texture_type_to_string ( TextureType  type)