resonance 1.0.1
Loading...
Searching...
No Matches
freqmakercursor.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/freqpart.h"
4#include "math/color.h"
5#include "math/vector2.h"
6
8namespace Rnd {
9class Mesh;
10}
11
23public:
31
39
49 void deselect();
50
51protected:
52 int mCursorX; // +0x00, the cursor position in whole units
53 int mCursorZ; // +0x04
54 unsigned char mColorAlignment[0x8]; // +0x08, the quadword alignment of mColor
55 Color mColor; // +0x10, starts as g_freqMakerDefaultColor
56 FreqPart *mSelected; // +0x20, the part being edited, or null
57 unsigned char mBackupAlignment[0xc]; // +0x24, the quadword alignment of mSelectedBackup
58 FreqPart mSelectedBackup; // +0x30, the selected part as it was when selected
59 int mSelectedDrawIndex; // +0x70, its draw position when selected
60 FreqPartTemplate *mTemplate; // +0x74, the template being placed, or null
61 int mPlacing; // +0x78, 1 while placing a template and 0 while editing
62 float mScaleX; // +0x7c, the template's x scale, 1000 while unset
63 float mScaleZ; // +0x80, the template's z scale, 1000 while unset
64 int mScaleStepX; // +0x84, mScaleX in 1/110 steps, -1 while unset
65 int mScaleStepZ; // +0x88, mScaleZ in 1/110 steps, -1 while unset
66 int mCursorMirrored; // +0x8c
67 Vector2 mPalettePosition; // +0x90, starts at (-1, -1)
68 Rnd::Mesh *mCursorMesh; // +0x98, the preview mesh, owned
69};
int mSelectedDrawIndex
Definition freqmakercursor.h:59
float mScaleZ
Definition freqmakercursor.h:63
unsigned char mColorAlignment[0x8]
Definition freqmakercursor.h:54
Rnd::Mesh * mCursorMesh
Definition freqmakercursor.h:68
unsigned char mBackupAlignment[0xc]
Definition freqmakercursor.h:57
int mPlacing
Definition freqmakercursor.h:61
int mScaleStepX
Definition freqmakercursor.h:64
void deselect()
Forget the selected part without restoring it.
float mScaleX
Definition freqmakercursor.h:62
Vector2 mPalettePosition
Definition freqmakercursor.h:67
FreqPartTemplate * mTemplate
Definition freqmakercursor.h:60
int mCursorZ
Definition freqmakercursor.h:53
int mScaleStepZ
Definition freqmakercursor.h:65
int mCursorMirrored
Definition freqmakercursor.h:66
~FreqMakerCursor()
Delete the preview mesh.
Color mColor
Definition freqmakercursor.h:55
FreqPart mSelectedBackup
Definition freqmakercursor.h:58
int mCursorX
Definition freqmakercursor.h:52
FreqMakerCursor()
Start with no template selected, an unset scale, and the FreQ maker default colour.
FreqPart * mSelected
Definition freqmakercursor.h:56
One kind of part the FreQ maker offers, shared by every FreqPart placed from it.
Definition freqparttemplate.h:25
One placed part of a FreQ avatar.
Definition freqpart.h:25
Indexed triangle mesh with one material.
Definition mesh.h:46
The rendering engine.
Definition animhelper.h:3
Linear colour with four float components.
Definition color.h:10
Two-component vector, used for texture coordinates.
Definition vector2.h:10