Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
753ba67d
Commit
753ba67d
authored
Oct 13, 2016
by
Pedro J. Estébanez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add/expose VisualServer::get_default_clear_color()
parent
a317617a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
0 deletions
+9
-0
visual_server_raster.cpp
servers/visual/visual_server_raster.cpp
+5
-0
visual_server_raster.h
servers/visual/visual_server_raster.h
+1
-0
visual_server_wrap_mt.h
servers/visual/visual_server_wrap_mt.h
+1
-0
visual_server.cpp
servers/visual_server.cpp
+1
-0
visual_server.h
servers/visual_server.h
+1
-0
No files found.
servers/visual/visual_server_raster.cpp
View file @
753ba67d
...
...
@@ -7612,6 +7612,11 @@ void VisualServerRaster::set_default_clear_color(const Color& p_color) {
clear_color
=
p_color
;
}
Color
VisualServerRaster
::
get_default_clear_color
()
const
{
return
clear_color
;
}
void
VisualServerRaster
::
set_boot_image
(
const
Image
&
p_image
,
const
Color
&
p_color
,
bool
p_scale
)
{
if
(
p_image
.
empty
())
...
...
servers/visual/visual_server_raster.h
View file @
753ba67d
...
...
@@ -1283,6 +1283,7 @@ public:
virtual
void
set_boot_image
(
const
Image
&
p_image
,
const
Color
&
p_color
,
bool
p_scale
);
virtual
void
set_default_clear_color
(
const
Color
&
p_color
);
virtual
Color
get_default_clear_color
()
const
;
VisualServerRaster
(
Rasterizer
*
p_rasterizer
);
~
VisualServerRaster
();
...
...
servers/visual/visual_server_wrap_mt.h
View file @
753ba67d
...
...
@@ -718,6 +718,7 @@ public:
FUNC3
(
set_boot_image
,
const
Image
&
,
const
Color
&
,
bool
);
FUNC1
(
set_default_clear_color
,
const
Color
&
);
FUNC0RC
(
Color
,
get_default_clear_color
);
FUNC0R
(
RID
,
get_test_cube
);
...
...
servers/visual_server.cpp
View file @
753ba67d
...
...
@@ -564,6 +564,7 @@ void VisualServer::_bind_methods() {
ObjectTypeDB
::
bind_method
(
_MD
(
"free_rid"
),
&
VisualServer
::
free
);
ObjectTypeDB
::
bind_method
(
_MD
(
"set_default_clear_color"
),
&
VisualServer
::
set_default_clear_color
);
ObjectTypeDB
::
bind_method
(
_MD
(
"get_default_clear_color"
),
&
VisualServer
::
get_default_clear_color
);
ObjectTypeDB
::
bind_method
(
_MD
(
"get_render_info"
),
&
VisualServer
::
get_render_info
);
...
...
servers/visual_server.h
View file @
753ba67d
...
...
@@ -1181,6 +1181,7 @@ public:
virtual
void
set_boot_image
(
const
Image
&
p_image
,
const
Color
&
p_color
,
bool
p_scale
)
=
0
;
virtual
void
set_default_clear_color
(
const
Color
&
p_color
)
=
0
;
virtual
Color
get_default_clear_color
()
const
=
0
;
enum
Features
{
FEATURE_SHADERS
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment