Skip to content

Commit 74072ce

Browse files
committed
UPBGE: add [set/get]MaterialMode under deprecated, same for constant KX_TEXFACE_MATERIAL, KX_BLENDER_MULTITEX_MATERIAL and KX_BLENDER_GLSL_MATERIAL.
1 parent 1f42eae commit 74072ce

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/python_api/rst/bge.render.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,20 @@ Constants
5858

5959
.. data:: KX_TEXFACE_MATERIAL
6060

61+
Deprecated.
62+
6163
Materials as defined by the texture face settings.
6264

6365
.. data:: KX_BLENDER_MULTITEX_MATERIAL
6466

67+
Deprecated.
68+
6569
Materials approximating blender materials with multitexturing.
6670

6771
.. data:: KX_BLENDER_GLSL_MATERIAL
6872

73+
Deprecated.
74+
6975
Materials approximating blender materials with GLSL.
7076

7177
.. DATA:: VSYNC_OFF
@@ -232,6 +238,8 @@ Functions
232238

233239
.. function:: setMaterialMode(mode)
234240

241+
Deprecated and no longer functional.
242+
235243
Set the material mode to use for OpenGL rendering.
236244

237245
:arg mode: material mode
@@ -242,6 +250,8 @@ Functions
242250

243251
.. function:: getMaterialMode(mode)
244252

253+
Deprecated and no longer functional.
254+
245255
Get the material mode to use for OpenGL rendering.
246256

247257
:rtype: KX_TEXFACE_MATERIAL, KX_BLENDER_MULTITEX_MATERIAL, KX_BLENDER_GLSL_MATERIAL

source/gameengine/Ketsji/KX_PythonInit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,14 +1213,14 @@ static PyObject *gPySetMaterialType(PyObject *,
12131213
PyObject *args,
12141214
PyObject *)
12151215
{
1216-
// TODO set deprecated.
1216+
ShowDeprecationWarning("setMaterialMode(mode)", "nothing");
12171217

12181218
Py_RETURN_NONE;
12191219
}
12201220

12211221
static PyObject *gPyGetMaterialType(PyObject *)
12221222
{
1223-
// TODO set deprecated.
1223+
ShowDeprecationWarning("getMaterialMode()", "nothing");
12241224

12251225
return PyLong_FromLong(0);
12261226
}

0 commit comments

Comments
 (0)