My Project
ParaScriptingMovie.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2004 - 2006 ParaEngine Dev Studio, All Rights Reserved.
3 // Date: 2005.11
4 // Description: API for AVI based movie.
5 //-----------------------------------------------------------------------------
6 #pragma once
7 #include "ParaScriptingCommon.h"
8 
9 #include <string>
10 namespace ParaScripting
11 {
12  using namespace std;
16  class PE_CORE_DECL ParaMovie
17  {
18  public:
20  static ParaAttributeObject GetAttributeObject();
21 
25  static void SetMovieScreenSize(int nWidth, int nHeight);
26 
28  static void SetCaptureGUI(bool bGUI);
30  static bool CaptureGUI();
31 
33  static void SetRecordingFPS(int nFPS);
34 
36  static int GetRecordingFPS();
37 
46  static void SetStereoCaptureMode(int nMode);
47 
56  static int GetStereoCaptureMode();
57 
58 
62  static void SetStereoEyeSeparation(float fDist);
63 
67  static float GetStereoEyeSeparation();
68 
71  static bool BeginCapture(string sFileName);
73  static bool EndCapture();
75  static void PauseCapture();
77  static void ResumeCapture();
80  static bool IsInCaptureSession();
82  static bool IsRecording();
84  static bool FrameCapture();
85 
87  static void GetMovieScreenSize(int* nWidth, int* nHeight);
89  static string GetMovieFileName();
90 
92  static void SelectCodecOptions();
93 
96  static void SetEncodeMethod(int eType);
98  static int GetEncodeMethod();
99 
106  static bool TakeScreenShot(const char* filename);
107 
108 
117  static bool TakeScreenShot3(const char* filename, int width, int height);
118 
119  // Use a new thread to take a screenshot.
120  static void TakeScreenShot_Async(const char* filename, const char* sCallBackScript);
121  static void TakeScreenShot2_Async(const char* filename, bool bEncode, const char* sCallBackScript);
122  static void TakeScreenShot3_Async(const char* filename, bool bEncode, int width, int height, const char* sCallBackScript);
123  static void TakeScreenShot_Async_Internal(const char* filename, bool bEncode, int width, int height, const char* sCallBackScript);
124 
125  static bool RenderToTexture(const char* filename, int width, int height);
126 
134  static bool ResizeImage(const string& filename, int width, int height, const char* destFilename);
135 
143  static void GetImageInfo(const string& filename, int* width, int* height, int* nFileSize);
144 
145  };
146 
147 }
movie making and screen capture functions
Definition: ParaScriptingMovie.h:16
it represents an attribute object associated with an object.
Definition: ParaScriptingGlobal.h:458
for luabind, The main drawback of this approach is that the compilation time will increase for the fi...
Definition: luaSQLite.cpp:1971