Ignore:
Timestamp:
Apr 5, 2013, 1:17:26 AM (7 years ago)
Author:
ldelgass
Message:

Use vrmath::Color4f for color where appropriate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/Grid.h

    r3613 r3627  
    77#define NV_GRID_H
    88
    9 #include <util/Fonts.h>
     9#include <vrmath/Color4f.h>
    1010
    1111#include "Axis.h"
     
    1414namespace nv {
    1515
    16 class RGBA
    17 {
    18 public:
    19     RGBA(float r, float g, float b, float a) :
    20         red(r),
    21         green(g),
    22         blue(b),
    23         alpha(a)
    24     {}
    25 
    26     void set(float r, float g, float b, float a)
    27     {
    28         red   = r;
    29         green = g;
    30         blue  = b;
    31         alpha = a;
    32     }
    33 
    34     float red, green, blue, alpha;
    35 };
     16namespace util {
     17class Fonts;
     18}
    3619
    3720class Grid
     
    7154
    7255private:
    73     RGBA _axisColor, _majorColor, _minorColor;
     56    vrmath::Color4f _axisColor, _majorColor, _minorColor;
    7457    nv::util::Fonts *_font;
    7558    bool _visible;
Note: See TracChangeset for help on using the changeset viewer.