// purpose or non-infringement. Please see the License for the specific terms
// and conditions governing the rights and limitations under the License.
-
#include <OpenGl_AVIWriter.hxx>
-#ifdef WNT
+#if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_VIDEOCAPTURE)
+ #ifdef _MSC_VER
+ #pragma comment (lib, "vfw32.lib")
+ #endif
+
OpenGl_AVIWriter* OpenGl_AVIWriter::MyAVIWriterInstance = 0L;
OpenGl_AVIWriter * OpenGl_AVIWriter::GetInstance()
return aResult;
}
-#endif //WNT
+#endif
// purpose or non-infringement. Please see the License for the specific terms
// and conditions governing the rights and limitations under the License.
-
#include <OpenGl_GlCore11.hxx>
-#if (defined(_WIN32) || defined(__WIN32__))
+#if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_VIDEOCAPTURE)
#include <OpenGl_AVIWriter.hxx>
#endif
glViewport (aViewPortBack[0], aViewPortBack[1], aViewPortBack[2], aViewPortBack[3]);
}
-#if (defined(_WIN32) || defined(__WIN32__))
+#if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_VIDEOCAPTURE)
if (OpenGl_AVIWriter_AllowWriting (theCView.DefWindow.XWindow))
{
GLint params[4];
// purpose or non-infringement. Please see the License for the specific terms
// and conditions governing the rights and limitations under the License.
-
-
-#ifdef WNT
-#include <windows.h>
+#if (defined(_WIN32) || defined(__WIN32__)) && defined(HAVE_VIDEOCAPTURE)
+ #include <windows.h>
+ #include <OpenGl_AVIWriter.hxx>
#endif
#include <ViewerTest.hxx>
#include <Draw_Interpretor.hxx>
-#include <OpenGl_AVIWriter.hxx>
static Standard_Integer avi_record(Draw_Interpretor& di,
Standard_Integer argc, const char** argv)
{
- Standard_Integer aResult(1);
- if (argc < 2) {
+ if (argc < 2)
+ {
cout << "Syntax: " << argv[0] << " file | start | stop | save" << endl;
- } else {
+ return 1;
+ }
-#ifndef WNT
- cout << "AVI writer is implemented only in Windows version" << endl;
-#else
+ Standard_Integer aResult = 1;
+#if (defined(_WIN32) || defined(__WIN32__))
+ #ifdef HAVE_VIDEOCAPTURE
static OpenGl_AVIWriter * pAviWriter = 0L;
if (strncmp(argv[1], "file", 5) == 0) {
cout << pAviWriter->GetLastErrorMessage() << endl;
aResult = 0;
}
+ #else
+ cout << "AVI writer capability was disabled\n";
+ #endif
+#else
+ cout << "AVI writer is implemented only in Windows version\n";
#endif
- }
return aResult;
}
__FILE__,
&avi_record, group); //Draft_Modification
}
-
-
-