My Project
MovieClip.h
1 #pragma once
2 #include <string>
3 namespace ParaEngine
4 {
5  using namespace std;
6 
8  struct SubScript
9  {
10  union{
11  int m_nFrameOffset;
12  float m_fTimeOffset;
13  };
14  string m_text;
15  };
17  typedef list<SubScript> MovieSubScripts;
18 
21  movieclip_base=0,
22  movieclip_screen_capture,
23  };
26  {
27  public:
28  CMovieClipBase(void);
29  virtual ~CMovieClipBase(void);
31  virtual MOVIE_CLIP_TYPES GetType(){return movieclip_base;};
32  public:
33  string GetFileName(){return m_filename;};
34  void SetFileName(string filename){m_filename = filename;};
35 
36  string GetClipTitle(){return m_title;};
37  void SetClipTitle(string title){m_title= title;};
38 
40  int GetFrameCount(){return m_nFrameCount;};
42  int GetClipWidth(){return m_nClipWidth;}
44  int GetClipHeight(){return m_nClipHeight;}
45  private:
47  string m_filename;
49  string m_title;
51  int m_nFrameCount;
53  int m_nClipWidth;
55  int m_nClipHeight;
57  MovieSubScripts m_scripts;
58  };
59 
62  {
63  public:
65  virtual ~CMovieClipScreenCapture(void);
66  virtual MOVIE_CLIP_TYPES GetType(){return movieclip_screen_capture;};
67 
68  };
69 
70 }
int GetClipHeight()
clip height in pixel
Definition: MovieClip.h:44
It presents a script at a certain time.
Definition: MovieClip.h:8
int GetFrameCount()
get the number of frames in the clips
Definition: MovieClip.h:40
MOVIE_CLIP_TYPES
movie clip types
Definition: MovieClip.h:20
different physics engine has different winding order.
Definition: EventBinding.h:32
it represents a clip of movies, which may be screen captured or just some transition effects...
Definition: MovieClip.h:25
list< SubScript > MovieSubScripts
movie sub scripts
Definition: MovieClip.h:17
it represents a screen captured screen movie.
Definition: MovieClip.h:61
virtual MOVIE_CLIP_TYPES GetType()
get the clip type
Definition: MovieClip.h:66
int GetClipWidth()
clip width in pixel
Definition: MovieClip.h:42
virtual MOVIE_CLIP_TYPES GetType()
get the clip type
Definition: MovieClip.h:31