resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::String::Point Struct Reference

One point of the ribbon. More...

#include <string.h>

Collaboration diagram for Rnd::String::Point:

Public Member Functions

 Point ()
 Construct a point at the origin, coloured white.

Public Attributes

Vector3 mPos
Color mColor
Vector3 mCamPos
Vector2 mScreen
Vector2 mDir
Vector2 mNormal
int mClipped
int mReserved4c

Detailed Description

One point of the ribbon.

The first two members serialise and dump, under the labels "v" and "c". Everything after them is frame scratch that DrawShowing() rewrites. The default constructor accordingly writes none of it.

The type is public because the three vector helpers of the Rnd::String translation unit receive the vector by address rather than through the class, at 0x004be168, 0x004be408, and 0x004be5a8. A friend declaration for those three fits the image equally well, and public asserts the weaker of the two.

Constructor & Destructor Documentation

◆ Point()

Rnd::String::Point::Point ( )

Construct a point at the origin, coloured white.

The constructor has no address of its own. Its body appears inlined at each of its three call sites, in SetNumPoints() and twice inside the vector reader at 0x004be5a8.

Member Data Documentation

◆ mPos

Vector3 Rnd::String::Point::mPos

Position in the object's own space. +0x00

◆ mColor

Color Rnd::String::Point::mColor

Colour of both mesh vertices this point governs. +0x10

◆ mCamPos

Vector3 Rnd::String::Point::mCamPos

Camera-space position, rewritten by DrawShowing(). +0x20

◆ mScreen

Vector2 Rnd::String::Point::mScreen

Projected position, rewritten by DrawShowing(). +0x30

◆ mDir

Vector2 Rnd::String::Point::mDir

Unit screen direction towards the next point. +0x38

◆ mNormal

Vector2 Rnd::String::Point::mNormal

Perpendicular of mDir, (-mDir.y, mDir.x). +0x40

◆ mClipped

int Rnd::String::Point::mClipped

Set while the point sits behind the near plane. +0x48

◆ mReserved4c

int Rnd::String::Point::mReserved4c

No recovered routine reads or writes it. +0x4c


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