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

4
src/DebugTools/ShapeRenderer.h

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

Loading…
Cancel
Save