resonance 1.0.1
Loading...
Searching...
No Matches
tunnelseekstrip.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "math/color.h"
7
8namespace Rnd {
9
10class Mat;
11class Object;
12class Tunnel;
13class TunnelSeeker;
14
31public:
41
49 Clear();
50 }
51
60 void Clear();
61
75 void SetRange(int nFirstSlice, int nSliceCount, int nRing);
76
83 void Refresh();
84
98 void Build(Tunnel *pTunnel, TunnelSeeker *pOwner, int nIndex);
99
107 void SetMat(Mat *pMat);
108
118 void SetColor(const Color &color);
119
132 void DrawSection(int nSlice, float flScreenSize);
133
143 void Replace(Object *pFrom, Object *pTo, Object *pReferrer);
144
147 int mRing;
155 std::vector<TunnelSeekSection> mSections;
156};
157
158} // namespace Rnd
Surface description a Rnd::Mesh draws with.
Definition mat.h:36
Base of every object the renderer can load, resolve by name, and serialise.
Definition object.h:43
void SetRange(int nFirstSlice, int nSliceCount, int nRing)
Place the strip on a run of slices.
void SetColor(const Color &color)
Store a colour and recolour every section already updated.
int mStepNumerator
Definition tunnelseekstrip.h:152
void Build(Tunnel *pTunnel, TunnelSeeker *pOwner, int nIndex)
Generate the sections for a tunnel.
Tunnel * mTunnel
Definition tunnelseekstrip.h:150
Color mColor
Definition tunnelseekstrip.h:148
int mFirstSlice
Definition tunnelseekstrip.h:145
void Clear()
Release the material reference and empty the sections.
TunnelSeeker * mOwner
Definition tunnelseekstrip.h:151
void Replace(Object *pFrom, Object *pTo, Object *pReferrer)
Replace the material reference.
void SetMat(Mat *pMat)
Replace the material and hand it to the finest mesh of every section.
~TunnelSeekStrip()
Release the material reference and destroy the strip.
Definition tunnelseekstrip.h:48
int mRing
Definition tunnelseekstrip.h:147
void DrawSection(int nSlice, float flScreenSize)
Draw the section placed on one slice.
std::vector< TunnelSeekSection > mSections
Definition tunnelseekstrip.h:155
int mSliceCount
Definition tunnelseekstrip.h:146
void Refresh()
Place the strip again on the run it last received.
Mat * mMat
Definition tunnelseekstrip.h:149
int mStepSize
Definition tunnelseekstrip.h:153
int mStepCount
Definition tunnelseekstrip.h:154
TunnelSeekStrip()
Construct an empty strip with a white colour.
Marker that travels around the tunnel rings towards a target ring.
Definition tunnelseeker.h:33
Procedural tunnel the game flies the player through.
Definition tunnel.h:72
The rendering engine.
Definition animhelper.h:3
Linear colour with four float components.
Definition color.h:10