ScummVM API documentation
emimesh_component.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef GRIM_EMI_MESH_COMPONENT_H
23 #define GRIM_EMI_MESH_COMPONENT_H
24 
25 #include "engines/grim/costume/component.h"
26 
27 namespace Grim {
28 
29 class EMICostume;
30 class EMIModel;
31 
32 class EMIMeshComponent : public Component {
33 public:
34  EMIMeshComponent(Component *parent, int parentID, const char *filename, Component *prevComponent, tag32 tag, EMICostume *costume);
36  void init() override;
37  int update(uint time) override;
38  void reset() override;
39  void draw() override;
40  void getBoundingBox(int *x1, int *y1, int *x2, int *y2) const;
41 
42 public:
43  EMICostume *_costume;
44  bool _hierShared;
46  EMIMeshComponent *_parentModel;
47  EMIModel *_obj;
48  bool _hasComplained; // Temporary fix for warning-spam.
49 };
50 
51 } // end of namespace Grim
52 
53 #endif
Definition: modelemi.h:82
Definition: list.h:44
Definition: actor.h:33
Definition: costumeemi.h:40
Definition: component.h:38
Definition: emimesh_component.h:32