matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
|
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) |
using engine::resources::ShaderName = typedef std::string |
|
strong |
|
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 |
std::string_view engine::resources::to_string | ( | ShaderType | type | ) |
Converts a ShaderType to a string.
type | The type of the shader. |
int engine::resources::to_opengl_type | ( | ShaderType | type | ) |
std::string_view engine::resources::texture_type_to_string | ( | TextureType | type | ) |