Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BlenderPhi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
raas
BlenderPhi
Commits
a1e85478
Commit
a1e85478
authored
10 years ago
by
Porteries Tristan
Browse files
Options
Downloads
Patches
Plain Diff
BGE: Use CameCase code style for KX_WorldInfo python API.
parent
37782272
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/python_api/rst/bge_types/bge.types.KX_WorldInfo.rst
+9
-9
9 additions, 9 deletions
doc/python_api/rst/bge_types/bge.types.KX_WorldInfo.rst
source/gameengine/Ketsji/KX_WorldInfo.cpp
+8
-8
8 additions, 8 deletions
source/gameengine/Ketsji/KX_WorldInfo.cpp
with
17 additions
and
17 deletions
doc/python_api/rst/bge_types/bge.types.KX_WorldInfo.rst
+
9
−
9
View file @
a1e85478
...
@@ -16,7 +16,7 @@ base class --- :class:`PyObjectPlus`
...
@@ -16,7 +16,7 @@ base class --- :class:`PyObjectPlus`
sce = bge.logic.getCurrentScene()
sce = bge.logic.getCurrentScene()
sce.world.mist
_c
olor = [1.0, 0.0, 0.0]
sce.world.mist
C
olor = [1.0, 0.0, 0.0]
*********
*********
Constants
Constants
...
@@ -38,49 +38,49 @@ Constants
...
@@ -38,49 +38,49 @@ Constants
Attributes
Attributes
**********
**********
.. attribute:: mist
_e
nable
.. attribute:: mist
E
nable
Return the state of the mist.
Return the state of the mist.
:type: bool
:type: bool
.. attribute:: mist
_s
tart
.. attribute:: mist
S
tart
The mist start point.
The mist start point.
:type: float
:type: float
.. attribute:: mist
_d
istance
.. attribute:: mist
D
istance
The mist distance fom the start point to reach 100% mist.
The mist distance fom the start point to reach 100% mist.
:type: float
:type: float
.. attribute:: mist
_i
ntensity
.. attribute:: mist
I
ntensity
The mist intensity.
The mist intensity.
:type: float
:type: float
.. attribute:: mist
_t
ype
.. attribute:: mist
T
ype
The type of mist - must be KX_MIST_QUADRATIC, KX_MIST_LINEAR or KX_MIST_INV_QUADRATIC
The type of mist - must be KX_MIST_QUADRATIC, KX_MIST_LINEAR or KX_MIST_INV_QUADRATIC
.. attribute:: mist
_c
olor
.. attribute:: mist
C
olor
The color of the mist. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].
The color of the mist. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].
Mist and background color sould always set to the same color.
Mist and background color sould always set to the same color.
:type: :class:`mathutils.Vector`
:type: :class:`mathutils.Vector`
.. attribute:: background
_c
olor
.. attribute:: background
C
olor
The color of the background. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].
The color of the background. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].
Mist and background color sould always set to the same color.
Mist and background color sould always set to the same color.
:type: :class:`mathutils.Vector`
:type: :class:`mathutils.Vector`
.. attribute:: ambient
_c
olor
.. attribute:: ambient
C
olor
The color of the ambient light. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].
The color of the ambient light. Black = [0.0, 0.0, 0.0], White = [1.0, 1.0, 1.0].
...
...
This diff is collapsed.
Click to expand it.
source/gameengine/Ketsji/KX_WorldInfo.cpp
+
8
−
8
View file @
a1e85478
...
@@ -232,17 +232,17 @@ PyMethodDef KX_WorldInfo::Methods[] = {
...
@@ -232,17 +232,17 @@ PyMethodDef KX_WorldInfo::Methods[] = {
};
};
PyAttributeDef
KX_WorldInfo
::
Attributes
[]
=
{
PyAttributeDef
KX_WorldInfo
::
Attributes
[]
=
{
KX_PYATTRIBUTE_BOOL_RW
(
"mist
_e
nable"
,
KX_WorldInfo
,
m_hasmist
),
KX_PYATTRIBUTE_BOOL_RW
(
"mist
E
nable"
,
KX_WorldInfo
,
m_hasmist
),
KX_PYATTRIBUTE_FLOAT_RW
(
"mist
_s
tart"
,
0.0
f
,
10000.0
f
,
KX_WorldInfo
,
m_miststart
),
KX_PYATTRIBUTE_FLOAT_RW
(
"mist
S
tart"
,
0.0
f
,
10000.0
f
,
KX_WorldInfo
,
m_miststart
),
KX_PYATTRIBUTE_FLOAT_RW
(
"mist
_d
istance"
,
0.001
f
,
10000.0
f
,
KX_WorldInfo
,
m_mistdistance
),
KX_PYATTRIBUTE_FLOAT_RW
(
"mist
D
istance"
,
0.001
f
,
10000.0
f
,
KX_WorldInfo
,
m_mistdistance
),
KX_PYATTRIBUTE_FLOAT_RW
(
"mist
_i
ntensity"
,
0.0
f
,
1.0
f
,
KX_WorldInfo
,
m_mistintensity
),
KX_PYATTRIBUTE_FLOAT_RW
(
"mist
I
ntensity"
,
0.0
f
,
1.0
f
,
KX_WorldInfo
,
m_mistintensity
),
KX_PYATTRIBUTE_SHORT_RW
(
"mist
_t
ype"
,
0
,
2
,
true
,
KX_WorldInfo
,
m_misttype
),
KX_PYATTRIBUTE_SHORT_RW
(
"mist
T
ype"
,
0
,
2
,
true
,
KX_WorldInfo
,
m_misttype
),
KX_PYATTRIBUTE_RO_FUNCTION
(
"KX_MIST_QUADRATIC"
,
KX_WorldInfo
,
pyattr_get_mist_typeconst
),
KX_PYATTRIBUTE_RO_FUNCTION
(
"KX_MIST_QUADRATIC"
,
KX_WorldInfo
,
pyattr_get_mist_typeconst
),
KX_PYATTRIBUTE_RO_FUNCTION
(
"KX_MIST_LINEAR"
,
KX_WorldInfo
,
pyattr_get_mist_typeconst
),
KX_PYATTRIBUTE_RO_FUNCTION
(
"KX_MIST_LINEAR"
,
KX_WorldInfo
,
pyattr_get_mist_typeconst
),
KX_PYATTRIBUTE_RO_FUNCTION
(
"KX_MIST_INV_QUADRATIC"
,
KX_WorldInfo
,
pyattr_get_mist_typeconst
),
KX_PYATTRIBUTE_RO_FUNCTION
(
"KX_MIST_INV_QUADRATIC"
,
KX_WorldInfo
,
pyattr_get_mist_typeconst
),
KX_PYATTRIBUTE_RW_FUNCTION
(
"mist
_c
olor"
,
KX_WorldInfo
,
pyattr_get_mist_color
,
pyattr_set_mist_color
),
KX_PYATTRIBUTE_RW_FUNCTION
(
"mist
C
olor"
,
KX_WorldInfo
,
pyattr_get_mist_color
,
pyattr_set_mist_color
),
KX_PYATTRIBUTE_RW_FUNCTION
(
"background
_c
olor"
,
KX_WorldInfo
,
pyattr_get_back_color
,
pyattr_set_back_color
),
KX_PYATTRIBUTE_RW_FUNCTION
(
"background
C
olor"
,
KX_WorldInfo
,
pyattr_get_back_color
,
pyattr_set_back_color
),
KX_PYATTRIBUTE_RW_FUNCTION
(
"ambient
_c
olor"
,
KX_WorldInfo
,
pyattr_get_ambient_color
,
pyattr_set_ambient_color
),
KX_PYATTRIBUTE_RW_FUNCTION
(
"ambient
C
olor"
,
KX_WorldInfo
,
pyattr_get_ambient_color
,
pyattr_set_ambient_color
),
{
NULL
}
/* Sentinel */
{
NULL
}
/* Sentinel */
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment