Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
2694b455
Commit
2694b455
authored
Sep 06, 2010
by
Mathias Goldau
Browse files
[ADD] WColor enhancement: Some default colors as static members added.
parent
c6e6e38b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/common/WColor.cpp
src/common/WColor.cpp
+4
-0
src/common/WColor.h
src/common/WColor.h
+4
-0
No files found.
src/common/WColor.cpp
View file @
2694b455
...
...
@@ -223,3 +223,7 @@ bool WColor::operator!=( const WColor &rhs ) const
{
return
!
(
*
this
==
rhs
);
}
const
WColor
WColor
::
green
(
0.0
,
1.0
,
0.0
,
1.0
);
const
WColor
WColor
::
red
(
1.0
,
0.0
,
0.0
,
1.0
);
const
WColor
WColor
::
blue
(
0.0
,
0.0
,
1.0
,
1.0
);
src/common/WColor.h
View file @
2694b455
...
...
@@ -128,6 +128,10 @@ public:
*/
bool
operator
!=
(
const
WColor
&
rhs
)
const
;
static
const
WColor
green
;
//!< Default for green
static
const
WColor
red
;
//!< Default for red
static
const
WColor
blue
;
//!< Default for blue
protected:
private:
float
m_red
;
//!< Red channel
...
...
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