-
Notifications
You must be signed in to change notification settings - Fork 1
/
frame.hpp
43 lines (31 loc) · 1.1 KB
/
frame.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef FRAME_HPP
#define FRAME_HPP
#include <irrlicht.h>
using namespace irr;
using namespace scene;
using namespace video;
using namespace core;
class Frame :public ISceneNode
{
private:
// z=const rectangles
S3DVertex* m_z_vertices;
u16* m_z_indices;
unsigned int m_vertex_count;
//highlight for ball position
S3DVertex m_hl_vertices[4];
u16 m_hl_indices[4];
SMaterial m_material;
vector3df m_hms;
public:
Frame(ISceneNode* parent, ISceneManager* mgr, s32 id, vector3df ms);
void updateBallPos(double z);
~Frame();
virtual void OnRegisterSceneNode();
virtual void render();
//BoundingBox is not used, as automatic culling is disablead
virtual const aabbox3d<f32>& getBoundingBox() const { return aabbox3d<f32>(); }
virtual u32 getMaterialCount() const { return 1; }
virtual SMaterial& getMaterial(u32 i) { return m_material; }
};
#endif