blender/doc/python_api/rst
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
..
bge_types BGE: Allow access to original texture openGL Bind code/Id/Number 2016-02-18 12:05:53 +01:00
bge.app.rst Cleanup: rst style 2016-02-15 19:43:08 +11:00
bge.constraints.rst Remove redundant lists, link instead 2015-07-07 21:25:51 +10:00
bge.events.rst BGE doc cleanup: Some small cleanups in the BGE docs: 2014-03-31 22:22:04 -07:00
bge.logic.rst BGE: Improve clock management 2015-12-12 02:46:53 +01:00
bge.render.rst BGE docs fix: link to the correct method name 2015-09-27 17:20:10 +02:00
bge.texture.rst Remove redundant lists, link instead 2015-07-07 21:25:51 +10:00
bge.types.rst BGE: Splitting up the bge.types docs so they are not all on the same page. This should make them much easier to browse. 2013-02-10 06:13:26 +00:00
bgl.rst Cleanup: rst style 2016-02-15 19:43:08 +11:00
change_log.rst update autogenerated changelog. also correct typos in the generator. 2013-05-09 01:58:49 +00:00
gpu.rst Cleanup: rst style 2016-02-15 19:43:08 +11:00
include__bmesh.rst Docs: remove bmesh py api warning 2016-02-13 20:44:47 +11:00
info_api_reference.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_best_practice.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_gotcha.rst Doc fix: rather then -> rather than 2015-08-05 12:48:04 +02:00
info_overview.rst update hand written rst docs 2015-06-18 08:00:46 +10:00
info_quickstart.rst Minor correction to API docs 2016-01-27 07:51:53 +11:00
info_tips_and_tricks.rst Docs: update tip on using the systems Python 2016-02-15 19:35:54 +11:00
info_tutorial_addon.rst update hand written rst docs 2015-06-18 08:00:46 +10:00