2#include <unordered_map>
4#include "RenderResourceBase.h"
5#include "Resources/MeshStreamsLayout.h"
7#include "Rendering/Common.h"
8#include "Rendering/VertexFormat.h"
12 class IGraphicsDevice;
25 void release(
class Renderer * renderer);
27 Mesh * getMesh()
const {
return getResource(); }
31 uint32_t numVertexes = 0;
40 uint32_t indexOffset = 0;
41 uint32_t indexStride = 4;
43 mutable std::unordered_map<RenderResource::Id, Cogs::VertexArrayObjectHandle> vaos;
Contains render resources used by the renderer.
Represents a graphics device used to manage graphics resources and issue drawing commands.
ActivationResult
Defines results for resource activation.
Contains all Cogs related functionality.
static constexpr size_t maxStreams
Meshes contain streams of vertex data in addition to index data and options defining geometry used fo...
Render resources represent Engine resources like Mesh, Effect or MaterialInstance,...
static const Handle_t NoHandle
Represents a handle to nothing.