|
Raito 0.1
|
Namespaces | |
| namespace | OpenGL |
Classes | |
| class | Camera |
| struct | CameraParameters |
| struct | FrameBufferAttachmentData |
| struct | FrameBufferData |
| struct | FrameBufferTextureData |
| struct | RenderSurface |
| struct | RHI |
| class | Shader |
| struct | ShaderFileData |
| class | Surface |
Enumerations | |
| enum class | API : u8 { NONE = 0 , D3D12 , OPENGL , COUNT } |
| Renderer Api enumerator. More... | |
| enum class | FrameBufferTextureFormat { None = 0 , RGBA8 , RGBA16F , RGBA , RED_INTEGER , DEPTH24STENCIL8 , DEPTH32F , Depth = DEPTH24STENCIL8 , DepthF = DEPTH32F } |
| enum class | LightTechnique { Forward = 0 , Deferred , DeferredPlus } |
| enum | EngineShader : u32 { FORWARD = 0 , G_BUFFER , DEFERRED , DEFERRED_POINT_LIGHT , DEFERRED_DIRECTIONAL_LIGHT , SKYBOX , GAUSSIAN_BLUR , EQUIRECTANGULAR_TO_CUBEMAP , IRRADIANCE , POST_PROCESS , BLOOM_DOWN_SAMPLE , BLOOM_UP_SAMPLE , DEPTH , SSAO , SSAO_BLUR , DOWN_SAMPLE_REPROJECT , VISIBILITY_BUFFER , COPY_DEPTH , DRAW_COMMAND , PREFILTER , BRDF , DEFERRED_AMBIENT , DEFERRED_PLUS_COMBINE , ENGINE_SHADER_MAX } |
Functions | |
| bool | SetPlatformInterface (API api) |
| bool | Initialize () |
| void | Shutdown () |
| API | GetCurrentAPI () |
| Surface | CreateSurface (SysWindow *window) |
| void | RemoveSurface (u32 id) |
| ShaderFileData | GetFileData (EngineShader id) |
| const std::vector< Shader * > & | GetAllShaders () |
| u32 | CompileShader (const ShaderFileData &data) |
| u32 | AddMesh (Assets::Mesh *mesh) |
| void | RemoveMesh (u32 id) |
| u32 | AddTexture (Assets::Texture *texture, ubyte *data) |
| void | RemoveTexture (u32 id) |
| u32 | AddMaterial (const Assets::PbrMaterial &material) |
| void | SetMaterialValue (u32 id, const Assets::PbrMaterial material) |
| void | RemoveMaterial (u32 id) |
| const char * | GetEngineShadersPath (API API) |
| LightTechnique | GetCurrentRenderType () |
| void | SetRenderType (LightTechnique technique) |
| Camera & | GetMainCamera () |
| void | SetSSAO (bool value) |
| void | SetBloom (bool value) |
| void | SetParallaxMapping (bool value) |
| void | SetShadows (bool value) |
| void | EnableCulling (bool value) |
| void | EnableDebugAABB (bool value) |
|
strong |
Renderer Api enumerator.
| Enumerator | |
|---|---|
| NONE | |
| D3D12 | |
| OPENGL | |
| COUNT | |
| enum Raito::Renderer::EngineShader : u32 |
|
strong |
|
strong |
| u32 Raito::Renderer::AddMaterial | ( | const Assets::PbrMaterial & | material | ) |
Creates a CPU material to then uploaded when applied to a mesh
| material | The PBR material used |
| u32 Raito::Renderer::AddMesh | ( | Assets::Mesh * | mesh | ) |
Creates a mesh and uploads it to the GPU
| mesh | CPU mesh to be uploaded |
| u32 Raito::Renderer::AddTexture | ( | Assets::Texture * | texture, |
| ubyte * | data ) |
Creates a texture on the GPU and uploads the data
| texture | A CPU texture containing the metadata of the texture |
| data | The actual bytes that compose the texture |
| NODISCARD u32 Raito::Renderer::CompileShader | ( | const ShaderFileData & | data | ) |
Compiles the shader provided
| data | Contains the information of the shader file |
Create surface for window
| window | The window to create the surface |
| void Raito::Renderer::EnableCulling | ( | bool | value | ) |
| void Raito::Renderer::EnableDebugAABB | ( | bool | value | ) |
Get all the compiled shaders
Renderer graphics API getter
| NODISCARD LightTechnique Raito::Renderer::GetCurrentRenderType | ( | ) |
Get the location of compiled engine shaders relative to the executable The path is for the graphics API that's currently in use.
| API | The desired graphics API path |
| NODISCARD ShaderFileData Raito::Renderer::GetFileData | ( | EngineShader | id | ) |
| bool Raito::Renderer::Initialize | ( | ) |
Renderer initialization function
| void Raito::Renderer::RemoveMaterial | ( | u32 | id | ) |
Removes a material from the renderer
| id | of the material |
| void Raito::Renderer::RemoveMesh | ( | u32 | id | ) |
Removes the given mesh from the GPU
| id | of the GPU mesh |
| void Raito::Renderer::RemoveSurface | ( | u32 | id | ) |
Remove a surface
| id | The id of the surface |
| void Raito::Renderer::RemoveTexture | ( | u32 | id | ) |
Removes a texture from the GPU
| id | of the texture on the CPU |
| void Raito::Renderer::SetBloom | ( | bool | value | ) |
| void Raito::Renderer::SetMaterialValue | ( | u32 | id, |
| const Assets::PbrMaterial | material ) |
Sets a material value using raw data Similar to memcpy()
| id | of the material |
| name | of the value to change |
| data | to copy to |
| size | of the data in bytes |
| void Raito::Renderer::SetParallaxMapping | ( | bool | value | ) |
| bool Raito::Renderer::SetPlatformInterface | ( | API | api | ) |
Sets the platform interface
| api | The desired api to be used |
| void Raito::Renderer::SetRenderType | ( | LightTechnique | technique | ) |
| void Raito::Renderer::SetShadows | ( | bool | value | ) |
| void Raito::Renderer::SetSSAO | ( | bool | value | ) |
| void Raito::Renderer::Shutdown | ( | ) |
Renderer shutdown function Releases all renderer objects