Go to file
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
build_files Buildbot: Remove CMake cache on all platforms 2016-02-17 15:29:13 +01:00
doc BGE: Allow access to original texture openGL Bind code/Id/Number 2016-02-18 12:05:53 +01:00
extern Fix/workaround static object initialization in gflags 2016-02-17 15:01:40 +01:00
intern Fix T47461: Different results on CPU and GPU when using Branched Path Tracing 2016-02-18 01:23:38 +01:00
release Correct label for simple deform modifier 2016-02-17 01:55:40 +11:00
source BGE: Allow access to original texture openGL Bind code/Id/Number 2016-02-18 12:05:53 +01:00
tests Fix broken ghash performance gtest. 2016-02-16 22:22:41 +01:00
.arcconfig
.gitignore Git ignore BUILD_NOTES.txt from install_deps.sh. 2015-11-23 20:17:02 +01:00
.gitmodules Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt Windows MSVC allow building with openvdb / tbb 2016-02-10 13:59:04 +01:00
COPYING
GNUmakefile Minor edits to sync make.bat & makefile 2016-01-04 20:42:00 +11:00
make.bat Fix make.bat checking 64bit systems 2016-02-10 00:26:12 +11:00