Browse Source

DebugTools: saner default color.

Default framebuffer clear color is black, thus having black debug
renderers by default isn't much useful.
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
00a17e3699
  1. 4
      src/DebugTools/ForceRenderer.h
  2. 4
      src/DebugTools/ShapeRenderer.h

4
src/DebugTools/ForceRenderer.h

@ -44,7 +44,7 @@ See ForceRenderer documentation for more information.
*/
class ForceRendererOptions {
public:
inline constexpr ForceRendererOptions(): _size(1.0f) {}
inline constexpr ForceRendererOptions(): _color(1.0f), _size(1.0f) {}
/** @brief Color of rendered arrow */
inline constexpr Color4<> color() const { return _color; }
@ -53,7 +53,7 @@ class ForceRendererOptions {
* @brief Set color of rendered arrow
* @return Pointer to self (for method chaining)
*
* Default is black.
* Default is 100% opaque white.
*/
inline ForceRendererOptions* setColor(const Color4<>& color) {
_color = color;

4
src/DebugTools/ShapeRenderer.h

@ -57,7 +57,7 @@ See ShapeRenderer documentation for more information.
*/
class ShapeRendererOptions {
public:
inline constexpr ShapeRendererOptions(): _pointSize(0.25f) {}
inline constexpr ShapeRendererOptions(): _color(1.0f), _pointSize(0.25f) {}
/** @brief Color of rendered shape */
inline constexpr Color4<> color() const { return _color; }
@ -66,7 +66,7 @@ class ShapeRendererOptions {
* @brief Set color of rendered shape
* @return Pointer to self (for method chaining)
*
* Default is black.
* Default is 100% opaque white.
*/
inline ShapeRendererOptions* setColor(const Color4<>& color) {
_color = color;

Loading…
Cancel
Save