Jump to content

  • Log In with Google      Sign In   
  • Create Account


Opengl and avi


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 JohnFive   Members   -  Reputation: 122

Posted 21 December 1999 - 04:35 PM

Well, like the subject says. How are you able to make avi play on opengl instead of directx.
thanks

Sponsor:

#2 Gromit   Members   -  Reputation: 144

Posted 19 December 1999 - 05:06 PM

I believe you can. If it isn't directly supported, it would still be pretty easy to work in a run-around. Microsoft Windows has it's own API for playing AVI files. I think that you can just specify the surface address that you want it to attach to and let her rip. I haven't tried it myself, but it should be easy to implement.

#3 SiCrane   Moderators   -  Reputation: 9497

Posted 21 December 1999 - 03:33 PM

The Win32 API has functions for reading AVIStreams, so for each frame you can retrieve the bitmap and then blit that to whatever surface you want in whatever API you want. Relevant functions: AVIStreamRead, AVIStreamReadFormat, AVIFileOpen, etc. Check the "Win32 Multimedia Programmer's Reference," which comes with the major compilers (Borland, MSVC).

#4 JohnFive   Members   -  Reputation: 122

Posted 21 December 1999 - 04:35 PM

Well all the apis that i have seen uses directx for bliting. i will look further into it. thanks for you suggestions.

------------------





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS