~ubuntu-branches/ubuntu/trusty/xplanet/trusty

« back to all changes in this revision

Viewing changes to src/libdisplay/DisplayBase.h

  • Committer: Package Import Robot
  • Author(s): Steve McIntyre
  • Date: 2014-01-30 18:54:10 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140130185410-o2u51emh707gbevv
Tags: 1.3.0-1
* New maintainer
* Move to new upstream version 1.3.0. (Closes: #678464)
  + Upstream highlights:
    - add "outlined" keyword to marker files
    - update JPL ephemeris code for 64 bit machines
    - add bump_shade config file parameter
    - add opacity keyword for markers
    - implement Rayleigh scattering
  + Remove old Debian patches now obsoleted:
    - possible-buffer-overflow (included upstream)
    - orbit-step-bug (included upstream)
    - gcc44-includes (included upstream)
    - hyphen-used-as-minus-sign (included upstream)
    - tsc-aspect-ratio (included upstream)
  + Update (and include!) FreeMonoBold
* Update libtiff build-deps (Closes: #736052)
* Update libpng build-deps (Closes: #662568)
* Update Standards-Version to 3.9.5
* Update to debhelper 9 to enable hardening build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    void setPixel(const int x, const int y, const unsigned char pixel[3]);
31
31
    void setPixel(const int x, const int y, const unsigned char pixel[3],
32
32
                  const double opacity);
 
33
    void setPixel(const int x, const int y, const unsigned char pixel[3],
 
34
                  const double opacity[3]);
33
35
    void getPixel(const int x, const int y, unsigned char pixel[3]) const;
34
36
 
35
37
    virtual void renderImage(PlanetProperties *planetProperties[]) = 0;
41
43
    void FontSize(const int size);
42
44
 
43
45
    void setText(const std::string &text);
 
46
    void DrawText(const int x, int y, const std::string &text, 
 
47
                  const unsigned char color[3], const double opacity);
44
48
    void DrawOutlinedText(const int x, int y, const std::string &text, 
45
 
                          const unsigned char color[3]);
 
49
                          const unsigned char color[3], const double opacity);
46
50
    void FreeText();
47
51
    void getTextBox(int &textWidth, int &textHeight);
48
52
 
65
69
    void PlaceImageOnRoot();
66
70
 
67
71
    void SetBackground(const int width, const int height, 
68
 
                       unsigned char *rgb);
 
72
                       unsigned char *rgb);
69
73
 
70
74
private:
71
75
    TextRenderer *textRenderer_;