Blender Git Loki
Git Commits -> Revision 15bd165
Revision 15bd165 by Dalai Felinto (master) March 20, 2010, 00:11 (GMT) |
BGE: bindId property in VideoTexture.Texture (to get the openGL id of the texture) Now if you have a VideoTexture.Texture you can use its id and draw it with bgl The Id is only going to be valid if the obj you are getting the VideoTexture.Texture from has a valid texture. In the examples you will see them as planes, that become invisible at load time, but are needed to validate the texture id. This is a simple example file: http://blenderecia.orgfree.com/blender/bind_id_simple.blend And a (much) more advanced one: http://blenderecia.orgfree.com/blender/bind_id.blend (get also this image and save it to the same folder of your blend file - http://blenderecia.orgfree.com/blender/mask.png ) Benoit, I couldn't decide on better names so for now I'm glad with this one. |
Commit Details:
Full Hash: 15bd165ca0effa4d0900499eec6f3058c2f18b18
SVN Revision: 27617
Parent Commit: d50876f
Lines Changed: +7, -0
1 Modified Path:
/source/gameengine/VideoTexture/Texture.cpp (+7, -0) (Diff)