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!