resonance 1.0.1
Loading...
Searching...
No Matches
tnlnowring.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5namespace Rnd {
6class Mesh;
7class View;
8} // namespace Rnd
9
25public:
34 TnlNowRing(int nMeshCount, int nPlayerCount);
35
46 void SetPlayerMesh(int nPlayer, int nMesh);
47
57 void SetFrame(float flFrame);
58
72 void SetRotation(int nStep);
73
81
92 void SetShowing(int nShowing);
93
94private:
95 std::vector<int> mPlayerMeshes; // Index into mMeshes of the mesh each player slot hides.
96 std::vector<Rnd::Mesh *> mMeshes;
97 Rnd::View *mView; // "nowring.view".
98 Rnd::View *mRotView; // "nowring rot.view".
99 int mResetPending;
100};
Indexed triangle mesh with one material.
Definition mesh.h:46
Root of a loadable scene.
Definition view.h:47
void RefreshMeshes()
Show every mesh, then hide the mesh of each player slot.
TnlNowRing(int nMeshCount, int nPlayerCount)
Resolve the views and meshes and show every mesh.
void SetShowing(int nShowing)
Show or hide "nowring.view".
void SetRotation(int nStep)
Turn "nowring rot.view" about its Y axis by whole eighths of a turn while the reset is pending.
void SetPlayerMesh(int nPlayer, int nMesh)
Record the mesh a player's slot hides, and refresh the meshes unless the reset is pending.
void SetFrame(float flFrame)
Run the pending reset once flFrame passes -1920.
The rendering engine.
Definition animhelper.h:3