Engine » Render » Mesh module

Adds and manages RenderMesh components.

Settings

  • renderMeshPool.bucketCount - number of buckets in the mesh pool (default: 1024).
  • renderMeshPool.bucketSize - maximum face count per bucket (default: 1024).

Dependencies

Files

file mesh.hpp
Component cubos::engine::RenderMesh.
file plugin.hpp
Plugin entry point.
file pool.hpp
Resource cubos::engine::RenderMeshPool.
file vertex.hpp
Struct cubos::engine::RenderMeshVeretx.

Classes

struct cubos::engine::RenderMesh
Component used to draw meshes stored in the vertex pool.
class cubos::engine::RenderMeshPool
Used to allocate render meshes, which can then be rendered using a single draw call.
struct cubos::engine::RenderMeshVertex
Vertex data type stored in the RenderMeshPool's vertex buffer.

Functions

auto renderMeshPlugin(Cubos& cubos) -> CUBOS_ENGINE_API void
Plugin entry function.

Function documentation

CUBOS_ENGINE_API void renderMeshPlugin(Cubos& cubos)

Plugin entry function.

Parameters
cubos Cubos main class.