Skip to content

raisin::RayraiWindow::TransparentDrawItem ​

struct · #include <rayrai/RayraiWindow.hpp>

One transparent draw in TransparentDrawDebugView::backToFrontOrder.

Public attributes ​

source ​

cpp
std::string source

world, visual or instanced_visual.

name ​

cpp
std::string name

Visual name, or world_object_<n> for raisim objects.

center ​

cpp
glm::vec3 center

World-space sort center.

radius ​

cpp
float radius

Approximate bounding radius in metres.

distanceSquared ​

cpp
float distanceSquared

Squared distance from the camera to the sort point.

sortOffset ​

cpp
float sortOffset

Per-visual transparent sort offset.

renderPriority ​

cpp
int renderPriority

Render priority of the source.

detectable ​

cpp
bool detectable

True when the source is marked detectable.

sortUsesBoundsCenter ​

cpp
bool sortUsesBoundsCenter

True when sorting uses the bounds center rather than the origin.

RaiSim — physics for robotics and AI.