http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] OpenGL + SDL + multi-threading + Theora


  • To: "game programmers" <gameprogrammer@freelists.org>
  • Subject: [gameprogrammer] OpenGL + SDL + multi-threading + Theora
  • From: "Husam Zakaria" <hzcppff@gmail.com>
  • Date: Wed, 22 Aug 2007 14:07:49 +0400
  • Delivered-to: list1@pendleton.com
  • Delivered-to: gameprogrammer@freelists.org
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=GOYEM9lQgs2dWRQFl45jCr3dXtt4AxO6yJfDnvAzacFFhDEJ6tPehFRCuVzI3tdR7rLkTHD/7ur2s2e2oR26MeJ/ApbA3wyk627j9Lxky/zc4mnx/tCWNB+2mimAVbLGc2fVSbwi1Q9JyOVuzOVN20rRhnTld2REOTLQWfhBhRA=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DA5YXkizgTDa3Me5yqLJB9apM4meMyBYrNgx37qc/oEX79kaoaCmwy/J3R8ErlHHXqImMmyPWVVlI0LxY0wSxcNgZ8KI/3JhBSyAZEPmo0LpA0QuHTPeplVPyHwPNmZRjDgqr92I8zSsZA5CLzTVMPKSn3iQblH1TnGKNeYvMSQ=
  • List-archive: <http://www.freelists.org/archives/gameprogrammer>
  • List-help: <mailto:ecartis@freelists.org?Subject=help>
  • List-id: gameprogrammer <gameprogrammer.freelists.org>
  • List-owner: <mailto:bob@pendleton.com>
  • List-post: <mailto:gameprogrammer@freelists.org>
  • List-software: Ecartis version 1.0.0
  • List-subscribe: <gameprogrammer-request@freelists.org?Subject=subscribe>
  • List-unsubscribe: <gameprogrammer-request@freelists.org?Subject=unsubscribe>
  • Reply-to: gameprogrammer@freelists.org
  • Sender: gameprogrammer-bounce@freelists.org

Hi, every one

I am working on an application that can play theora ogg file using
OpenGL and SDL, and I looked at the Nebula Device 2 nOggTheoraplayer
class at this link:

http://nebuladevice.cubik.org/documentation/nebula2/classnOggTheoraPlayer.shtml

and build my class the same way they build it, but the problem is that
I don't know how to play the video with such heirarcy.
so I decide to create a thread that decode the video frames and render
the decoded frames to a texture, and in the main thread I will render
this texture to the screen for every frame.

the problem is that I created the texture in the main thread and then
I created the thread that will render to this texture, and when I want
to render to this texture I call the following code to be sure that
the texture has been created:

     assert(glIsTexture(texture_id));

when the application run the assertion will cut the program indecating
that the texture isn't valid, so why does that happend?!! I am sure
that I create the texture in the main thread with the same id, so what
I can do to solve this?

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html