blender/doc/python_api
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-org fix [#28151] export OBJ don't save the extension 2011-08-03 05:32:07 +00:00
epy hide overly picky warnings from 'pylint' for pep8 script, indentation edits. 2011-11-19 16:17:35 +00:00
examples Cleanup: rst style 2016-02-15 19:43:08 +11:00
rst BGE: Allow access to original texture openGL Bind code/Id/Number 2016-02-18 12:05:53 +01:00
rst_from_bmesh_opdefines.py Cleanup: pep8 2016-02-01 00:47:10 +11:00
sphinx_changelog_gen.py cleanup: pep8 2015-01-29 15:35:06 +11:00
sphinx_doc_gen_monkeypatch.py Cleanup: pep8 2014-09-17 18:36:17 +10:00
sphinx_doc_gen.py Docs: avoid plank comma in API reference 2016-01-25 20:26:39 +11:00
sphinx_doc_gen.sh Docs: create link pointing to latest API docs 2015-11-11 04:14:11 +11:00