Changeset 18984 for trunk


Ignore:
Timestamp:
04/06/18 16:46:40 (6 years ago)
Author:
tbretz
Message:
clang++ did not compile, it requires that the arguments here are floats and this requires either casts or a pre-defined constant.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/BasicGlCamera.cc

    r18949 r18984  
    3131int BasicGlCamera::softwareMapping[NPIX];
    3232
     33static const float _coord = 1/sqrt(3.);
     34
    3335//Coordinates of an hexagon of radius 1 and center 0
    34 GLfloat hexcoords[6][2] = {{-1./sqrt(3.),  1},
    35                            { 1./sqrt(3.),  1},
    36                            { 2./sqrt(3.),  0},
    37                            { 1./sqrt(3.), -1},
    38                            {-1./sqrt(3.), -1},
    39                            {-2./sqrt(3.),  0}};
     36GLfloat hexcoords[6][2] = {{-1*_coord,  1},
     37                           { 1*_coord,  1},
     38                           { 2*_coord,  0},
     39                           { 1*_coord, -1},
     40                           {-1*_coord, -1},
     41                           {-2*_coord,  0}};
    4042
    4143
Note: See TracChangeset for help on using the changeset viewer.