vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::Visibility Struct Reference

VisibilitySystem's per-frame product: camera data, every scene mesh, and which of them the camera sees. More...

#include <visibility.h>

Public Attributes

RenderObjects objects
 Every drawable mesh, and which the camera sees.
std::vector< EntityId > entities
 Per object, its entity, parallel to the columns of objects.
CameraData camera
 The resolved view, depth of field included; meaningful while hasCamera.
EntityId cameraEntity {}
 The scene camera the frame was rendered through.

Detailed Description

VisibilitySystem's per-frame product: camera data, every scene mesh, and which of them the camera sees.

Member Data Documentation

◆ entities

std::vector<EntityId> Vkm::Engine::Visibility::entities

Per object, its entity, parallel to the columns of objects.

Kept beside the objects because drawing never needs it; tools do.

◆ cameraEntity

EntityId Vkm::Engine::Visibility::cameraEntity {}

The scene camera the frame was rendered through.

Empty for a host's free view (HostView) or no camera.


The documentation for this struct was generated from the following file: