mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Merge pull request #89805 from AThousandShips/viewport_report
Add missing `RenderInfoType` enum to `Viewport`
This commit is contained in:
commit
17c66c0bea
@ -497,10 +497,16 @@
|
||||
Represents the size of the [enum RenderInfo] enum.
|
||||
</constant>
|
||||
<constant name="RENDER_INFO_TYPE_VISIBLE" value="0" enum="RenderInfoType">
|
||||
Visible render pass (excluding shadows).
|
||||
</constant>
|
||||
<constant name="RENDER_INFO_TYPE_SHADOW" value="1" enum="RenderInfoType">
|
||||
Shadow render pass. Objects will be rendered several times depending on the number of amounts of lights with shadows and the number of directional shadow splits.
|
||||
</constant>
|
||||
<constant name="RENDER_INFO_TYPE_MAX" value="2" enum="RenderInfoType">
|
||||
<constant name="RENDER_INFO_TYPE_CANVAS" value="2" enum="RenderInfoType">
|
||||
Canvas item rendering. This includes all 2D rendering.
|
||||
</constant>
|
||||
<constant name="RENDER_INFO_TYPE_MAX" value="3" enum="RenderInfoType">
|
||||
Represents the size of the [enum RenderInfoType] enum.
|
||||
</constant>
|
||||
<constant name="DEBUG_DRAW_DISABLED" value="0" enum="DebugDraw">
|
||||
Objects are displayed normally.
|
||||
|
@ -4841,6 +4841,7 @@ void Viewport::_bind_methods() {
|
||||
|
||||
BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_VISIBLE);
|
||||
BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_SHADOW);
|
||||
BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_CANVAS);
|
||||
BIND_ENUM_CONSTANT(RENDER_INFO_TYPE_MAX);
|
||||
|
||||
BIND_ENUM_CONSTANT(DEBUG_DRAW_DISABLED);
|
||||
|
@ -138,6 +138,7 @@ public:
|
||||
enum RenderInfoType {
|
||||
RENDER_INFO_TYPE_VISIBLE,
|
||||
RENDER_INFO_TYPE_SHADOW,
|
||||
RENDER_INFO_TYPE_CANVAS,
|
||||
RENDER_INFO_TYPE_MAX
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user