wavelength 1.0.0
Loading...
Searching...
No Matches
hudstick.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/vector2.h"
4#include "rnd/rndanimatable.h"
5#include "rnd/rndmat.h"
6#include "rnd/rndmesh.h"
7#include "rnd/rndview.h"
8
15class HudStick {
16public:
23
36 HudStick(char chHud, RndAnimatable *pAnims, RndView *pParent);
37
44 void Reset();
45
52 void Hide();
53
62 void Show(int nDirection, const Vector2 *pPosition);
63
65 RndMesh *GetMesh() const {
66 return mMesh;
67 }
68
69private:
70 RndMesh *mMesh;
71 RndMat *mMats[kNumDirections];
72};
void Reset()
Hide the marker.
Direction
The materials of the marker, the indices of mMats.
Definition hudstick.h:18
@ kDirectionUpDown
Definition hudstick.h:20
@ kDirectionInOut
Definition hudstick.h:19
@ kNumDirections
Definition hudstick.h:21
void Hide()
Hide the marker.
HudStick(char chHud, RndAnimatable *pAnims, RndView *pParent)
Construct a hidden marker.
void Show(int nDirection, const Vector2 *pPosition)
Show the marker at a place on the diagram with one of its materials.
RndMesh * GetMesh() const
Definition hudstick.h:65
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Triangle mesh with a material.
Definition rndmesh.h:31
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
Two-component vector, used for texture coordinates.
Definition vector2.h:12