Rendering Engine
0.2.0
Modular Graphics Rendering Engine | v0.2.0
Loading...
Searching...
No Matches
render_resource_context.hpp
Go to the documentation of this file.
1
// This file is part of the Rendering Engine project.
2
// Author: Alexander Obzherin <alexanderobzherin@gmail.com>
3
// Copyright (c) 2025 Alexander Obzherin
4
// Distributed under the terms of the zlib License. See LICENSE.md for details.
5
6
#pragma once
7
8
namespace
rendering_engine
9
{
10
class
IRenderer
;
11
class
ModelCache
;
12
class
TextureCache
;
13
class
MaterialCache
;
14
/**
15
* @struct RenderResourceContext
16
* @brief Aggregates pointers to global rendering resource managers.
17
*
18
* This structure provides access to core rendering subsystems required
19
* for creating and managing GPU resources. It is typically passed to
20
* drawable objects, materials, and scene components that need access to
21
* shared renderer and caches.
22
*
23
* @see IRenderer, ModelCache, TextureCache, MaterialCache
24
*/
25
struct
RenderResourceContext
26
{
27
IRenderer
*
renderer
;
28
ModelCache
*
meshCache
;
29
TextureCache
*
textureCache
;
30
MaterialCache
*
materialCache
;
31
};
32
33
}
// namespace rendering_engine
rendering_engine::IRenderer
Defines an abstract interface for rendering backends.
Definition
i_renderer.hpp:29
rendering_engine::MaterialCache
Manages creation, storage, and lifecycle of Material objects within the rendering engine.
Definition
material_cache.hpp:30
rendering_engine::ModelCache
Manages loading, caching, and GPU residency of all model/mesh resources.
Definition
model_cache.hpp:28
rendering_engine::TextureCache
Manages texture loading, GPU uploading, and caching for reuse.
Definition
texture_cache.hpp:31
rendering_engine
Definition
actor.hpp:11
rendering_engine::RenderResourceContext
Aggregates pointers to global rendering resource managers.
Definition
render_resource_context.hpp:26
rendering_engine::RenderResourceContext::renderer
IRenderer * renderer
Definition
render_resource_context.hpp:27
rendering_engine::RenderResourceContext::textureCache
TextureCache * textureCache
Definition
render_resource_context.hpp:29
rendering_engine::RenderResourceContext::meshCache
ModelCache * meshCache
Definition
render_resource_context.hpp:28
rendering_engine::RenderResourceContext::materialCache
MaterialCache * materialCache
Definition
render_resource_context.hpp:30
RenderingEngine
RenderingLibrary
Include
render_resource_context.hpp
Generated by
1.14.0