🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Using QuickTime MOVs as Texture in Win32

Started by
-1 comments, last by AyaKoshigaya 17 years, 9 months ago
Hi, does anyone know how I can use QuickTime MOVs as an OpenGL Texture in Win32? I looked at the AppleSDK etc, but somehow I don't realy understand how it's working, the examples are realy strange I think (specially since most of them are for PowerPCs).. So, if anyone could give me a mini example of how to use MOVs, it would be great! Aya~ PS: This is what I got till now:
  startFrame:=GetMemory(4);
  gRowStride:=movieWidth * 4;
  gpBaseAddr:=GetMemory(gRowStride * movieHeight);
  QTNewGWorldFromPtr(gpOffscreen, k32ARGBPixelFormat, theMovieRect, nil, nil, 0, gpBaseAddr, gRowStride);
  SetGWorld(gpOffscreen, nil);
  gMovie:=QTUtils.GetMovie(@fs, @movieResFile, @myResID);
  SetMovieGWorld(gMovie, gpOffscreen, GetGWorldDevice(gpOffscreen));
but as soon as I call:
  MoviesTask(gMovie, 0);
my program crashes...
I aim for my endless Dreams and I know they will come true!

This topic is closed to new replies.

Advertisement