blender/doc
Ulysse Martin 608ee3e073 BGE: Allow access to original texture openGL Bind code/Id/Number
This patch adds a python method to get openGL bind code of material's texture according to the texture slot.

Example:
import bge

cont = bge.logic.getCurrentController()
own = cont.owner

bindId = own.meshes[0].materials[0].getTextureBindcode(0)
Test file: http://www.pasteall.org/blend/40679

This can be used to play with texture in openGL, for example, remove mipmap on the texture or play with all wrapping or filtering options.
And this can be used to learn openGL with Blender.

Reviewers: TwisterGE, kupoman, moguri, panzergame

Reviewed By: TwisterGE, kupoman, moguri, panzergame

Projects: #game_engine

Differential Revision: https://developer.blender.org/D1804
2016-02-18 12:05:53 +01:00
..
blender_file_format update dna exporter for API changes 2014-11-14 00:55:40 +01:00
doxygen Docs: update doxy config 2016-02-14 22:11:35 +11:00
guides Code cleanup: removed some unused UI button types 2013-06-09 18:05:50 +00:00
license And here is the first git (testing) commit by me! 2013-11-16 12:00:42 +01:00
manpage cleanup: shebang lines 2015-01-29 15:56:23 +11:00
python_api BGE: Allow access to original texture openGL Bind code/Id/Number 2016-02-18 12:05:53 +01:00