Changeset 371f9ed in git for src/gfxcore.h


Ignore:
Timestamp:
11/03/15 04:00:45 (5 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
47c62d04
Parents:
91756e4
Message:

src/gfxcore.cc,src/gfxcore.h: Factor out function to pick the colour
pen based on a value between 0 and 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gfxcore.h

    r91756e4 r371f9ed  
    241241    void PlaceVertexWithDepthColour(const Vector3 & v, Double factor = 1.0);
    242242    void PlaceVertexWithDepthColour(const Vector3 & v, GLint tex_x, GLint tex_y, Double factor);
     243
     244    void SetColourFrom01(double how_far, Double factor);
    243245
    244246    void SetColourFromDate(int date, Double factor);
Note: See TracChangeset for help on using the changeset viewer.