Skip to content

ExampleApp::Viewport ​

struct · #include <rayrai/example_common.hpp>

The viewer image of a frame and the pointer over it (see beginViewport()).

Public attributes ​

origin ​

cpp
ImVec2 origin

size ​

cpp
ImVec2 size

Where the image goes, in window points.

width ​

cpp
int width

height ​

cpp
int height

Its drawable pixels.

x ​

cpp
double x

y ​

cpp
double y

The pointer, in drawable pixels, y down.

hovered ​

cpp
bool hovered

The pointer is over the image and not over a panel.

RaiSim — physics for robotics and AI.