Skip to content

Commit

Permalink
UPBGE: add [set/get]MaterialMode under deprecated, same for constant …
Browse files Browse the repository at this point in the history
…KX_TEXFACE_MATERIAL, KX_BLENDER_MULTITEX_MATERIAL and KX_BLENDER_GLSL_MATERIAL.
  • Loading branch information
panzergame committed Feb 17, 2016
1 parent 1f42eae commit 74072ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions doc/python_api/rst/bge.render.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,20 @@ Constants

.. data:: KX_TEXFACE_MATERIAL

Deprecated.

Materials as defined by the texture face settings.

.. data:: KX_BLENDER_MULTITEX_MATERIAL

Deprecated.

Materials approximating blender materials with multitexturing.

.. data:: KX_BLENDER_GLSL_MATERIAL

Deprecated.

Materials approximating blender materials with GLSL.

.. DATA:: VSYNC_OFF
Expand Down Expand Up @@ -232,6 +238,8 @@ Functions

.. function:: setMaterialMode(mode)

Deprecated and no longer functional.

Set the material mode to use for OpenGL rendering.

:arg mode: material mode
Expand All @@ -242,6 +250,8 @@ Functions

.. function:: getMaterialMode(mode)

Deprecated and no longer functional.

Get the material mode to use for OpenGL rendering.

:rtype: KX_TEXFACE_MATERIAL, KX_BLENDER_MULTITEX_MATERIAL, KX_BLENDER_GLSL_MATERIAL
Expand Down
4 changes: 2 additions & 2 deletions source/gameengine/Ketsji/KX_PythonInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,14 +1213,14 @@ static PyObject *gPySetMaterialType(PyObject *,
PyObject *args,
PyObject *)
{
// TODO set deprecated.
ShowDeprecationWarning("setMaterialMode(mode)", "nothing");

Py_RETURN_NONE;
}

static PyObject *gPyGetMaterialType(PyObject *)
{
// TODO set deprecated.
ShowDeprecationWarning("getMaterialMode()", "nothing");

return PyLong_FromLong(0);
}
Expand Down

0 comments on commit 74072ce

Please sign in to comment.