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

What one object is drawn with: its geometry, its material and its pose. More...

#include <render_objects.h>

Public Attributes

MeshHandle mesh
 The Mesh component's handle, or the level an LOD component selected.
uint32_t skinCount = 0
 Bones in this object's slice of RenderView::skinMatrices.
bool waves = false
bool viewmodel = false
 A Viewmodel mesh seen through the eye: drawn through CameraData::viewmodelViewProjection.
bool fixed = false

Detailed Description

What one object is drawn with: its geometry, its material and its pose.

Pure handles; the backend resolves, sorts and batches them.

Member Data Documentation

◆ skinCount

uint32_t Vkm::Engine::ObjectDraw::skinCount = 0

Bones in this object's slice of RenderView::skinMatrices.

Zero means nothing poses it and it draws unskinned, i.e. in bind pose.

◆ waves

bool Vkm::Engine::ObjectDraw::waves = false

Its surface is the scene's ocean: a waves material, in a scene with an ocean. A skinned one is shaded as the water and not moved.

◆ fixed

bool Vkm::Engine::ObjectDraw::fixed = false

A fixed mesh (Mesh::movable off) the cull can keep: while RenderObjects::fixedSerial holds, it is as it was.


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