ScummVM API documentation
lip.h
1
2/* ScummVM - Graphic Adventure Engine
3 *
4 * ScummVM is the legal property of its developers, whose names
5 * are too numerous to list here. Please refer to the COPYRIGHT
6 * file distributed with this source distribution.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef TWP_LIP_H
24#define TWP_LIP_H
25
26#include "common/stream.h"
27#include "common/array.h"
28
29namespace Twp {
30
31struct LipItem {
32 float time = 0.f;
33 char letter = '\0';
34};
35
36// This contains the lip animation for a specific text.
37//
38// A lip animation contains a list of moth shape at a specific time.
39// You can see https://github.com/DanielSWolf/rhubarb-lip-sync to
40// have additional information about the mouth shapes.
41class Lip {
42public:
43 void load(Common::SeekableReadStream *stream);
44 // Gets the letter corresponding to a mouth shape at a spcific time.
45 char letter(float time);
46
47private:
49};
50
51} // namespace Twp
52
53#endif
Definition: array.h:52
Definition: stream.h:745
Definition: lip.h:41
Definition: lip.h:31