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
..
2016-01-04 14:20:48 +05:00
2015-12-16 01:53:48 +01:00
2015-10-28 15:13:12 +01:00
2015-12-27 12:00:33 +01:00
2015-10-19 16:03:40 +02:00
2016-01-23 15:39:31 +03:00
2013-08-18 14:15:51 +00:00
2015-07-14 22:36:00 +10:00
2015-07-14 22:36:00 +10:00
2015-12-07 19:25:12 -08:00
2015-10-25 19:43:46 +01:00
2016-01-27 12:06:57 +03:00
2012-10-09 13:36:42 +00:00
2015-11-03 10:31:08 +01:00
2013-03-18 11:44:56 +00:00
2012-10-09 13:36:42 +00:00
2016-02-18 12:05:53 +01:00
2016-02-18 12:05:53 +01:00
2016-01-28 01:36:12 -05:00
2015-07-12 16:58:12 +02:00
2015-07-12 16:58:12 +02:00
2012-10-09 13:36:42 +00:00
2011-10-23 17:52:20 +00:00
2012-10-09 13:36:42 +00:00
2015-10-11 18:28:43 +02:00
2015-07-12 16:58:12 +02:00
2015-07-25 09:43:06 +02:00
2015-12-16 01:53:48 +01:00
2015-10-07 22:14:43 +02:00
2015-07-12 16:58:12 +02:00
2015-07-12 16:58:12 +02:00
2016-01-28 01:36:12 -05:00
2014-10-07 15:47:32 -05:00
2011-10-23 17:52:20 +00:00
2012-10-09 13:36:42 +00:00
2015-12-16 01:53:48 +01:00
2015-03-16 18:46:40 +01:00
2015-10-11 13:41:38 +02:00
2015-10-11 13:41:38 +02:00
2015-12-16 01:53:48 +01:00
2015-12-13 02:09:05 +01:00
2012-09-16 04:58:18 +00:00
2015-10-29 18:44:09 +01:00
2015-10-29 17:24:35 +01:00
2015-05-11 23:05:04 -07:00
2015-03-23 21:43:42 +01:00
2015-12-16 01:53:48 +01:00
2012-09-16 04:58:18 +00:00
2015-10-25 19:22:29 +01:00
2012-06-25 09:14:37 +00:00
2016-01-28 01:36:12 -05:00
2015-12-12 02:46:53 +01:00
2016-01-17 18:47:14 +01:00
2016-01-17 18:47:14 +01:00
2014-03-27 22:32:06 -07:00
2014-04-12 20:12:07 +02:00
2015-05-11 23:05:04 -07:00
2012-10-09 13:36:42 +00:00
2015-07-12 16:58:12 +02:00
2013-03-29 06:21:28 +00:00
2013-11-04 19:22:47 +00:00
2013-11-04 19:22:47 +00:00
2015-12-16 01:53:48 +01:00
2015-06-14 04:53:10 +10:00
2015-12-16 01:53:48 +01:00
2015-10-07 22:14:43 +02:00
2015-07-28 13:54:41 +02:00
2015-07-12 16:58:12 +02:00
2014-02-22 13:57:12 +11:00
2012-10-09 13:36:42 +00:00
2013-02-23 01:17:01 +00:00
2012-10-09 13:36:42 +00:00
2016-01-25 13:50:52 +01:00
2015-12-16 01:53:48 +01:00
2015-12-16 01:53:48 +01:00
2012-09-16 04:58:18 +00:00
2015-12-16 01:53:48 +01:00
2012-06-25 09:14:37 +00:00
2015-07-12 16:58:12 +02:00
2012-10-09 13:36:42 +00:00
2012-10-09 13:36:42 +00:00
2015-06-20 14:21:31 +02:00
2013-08-03 23:58:17 +00:00
2012-02-25 16:49:59 +00:00
2012-06-25 09:14:37 +00:00
2015-08-16 11:38:25 +02:00
2015-02-03 15:32:54 +00:00
2015-07-12 16:58:12 +02:00
2015-07-12 16:58:12 +02:00
2015-12-18 03:00:38 +11:00
2015-07-12 16:58:12 +02:00
2015-11-03 10:31:08 +01:00
2015-02-09 20:56:38 +00:00
2012-10-23 11:47:23 +00:00
2013-11-18 18:13:23 +06:00
2015-12-16 01:53:48 +01:00
2012-10-09 13:36:42 +00:00
2015-12-16 01:53:48 +01:00
2015-10-07 22:14:43 +02:00
2011-10-23 17:52:20 +00:00
2012-10-09 13:36:42 +00:00
2015-10-07 22:14:43 +02:00
2015-10-07 22:14:43 +02:00
2015-07-12 16:58:12 +02:00
2012-10-21 05:46:41 +00:00
2015-12-16 01:53:48 +01:00
2013-11-04 19:22:47 +00:00
2012-11-10 05:42:50 +00:00
2012-08-18 13:07:48 +00:00
2015-07-12 16:58:12 +02:00
2012-10-09 13:36:42 +00:00
2012-02-25 16:49:59 +00:00
2012-06-25 09:14:37 +00:00
2012-02-25 16:49:59 +00:00
2012-06-25 09:14:37 +00:00
2015-12-16 01:53:48 +01:00
2015-12-27 12:00:33 +01:00
2013-03-26 07:29:01 +00:00
2012-10-09 13:36:42 +00:00
2015-12-16 01:53:48 +01:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2012-09-16 04:58:18 +00:00
2015-12-16 01:53:48 +01:00
2015-07-28 14:01:53 +02:00
2011-10-23 17:52:20 +00:00
2012-02-23 10:41:31 +00:00
2015-12-16 01:53:48 +01:00
2015-02-18 23:24:02 +01:00
2012-04-11 08:15:13 +00:00
2012-10-15 02:15:07 +00:00
2015-12-16 01:53:48 +01:00
2012-10-15 02:15:07 +00:00
2015-12-30 13:47:43 +01:00
2015-02-08 15:52:13 +01:00
2015-07-25 09:43:06 +02:00
2015-07-12 16:58:12 +02:00
2015-12-16 01:53:48 +01:00
2014-07-14 18:30:27 -07:00
2015-07-12 16:58:12 +02:00
2015-07-12 16:58:12 +02:00
2015-12-16 01:53:48 +01:00
2015-06-06 13:12:27 -07:00
2011-10-23 17:52:20 +00:00
2012-02-23 10:41:31 +00:00
2015-10-11 18:43:05 +02:00
2015-09-08 19:42:58 +10:00
2015-03-23 21:43:42 +01:00
2015-03-23 21:43:42 +01:00