~ubuntu-branches/ubuntu/trusty/rlvm/trusty

« back to all changes in this revision

Viewing changes to src/Systems/SDL/Texture.hpp

  • Committer: Package Import Robot
  • Author(s): Ying-Chun Liu (PaulLiu)
  • Date: 2013-11-02 02:57:13 UTC
  • mfrom: (10.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20131102025713-yzg31grxr8i7xerh
Tags: 0.13-1
* New upstream release
  - rlvm will now warn on startup when it detects Japanese save data, but
    English patched game files, and offer to reset the save data.
  - Much better support for Little Busters. Most graphical glitches during
    the Little Busters Refrain have been fixed.
  - TCC tone curve effects have been reverse-engineered and implemented
    (thanks to lurkmoar)
  - Sepia scenes (and other graphical filters) should look much better.
  - Simple shake commands implemented (fancy per-layer shaking still
    unimplemented).
  - Make animations smooth: data should be uploaded to the graphics card
    before an animation loop starts, not while the animation loop is
    running.
  - Fixes finding system fonts on Linux
  - Thanks to Elliot Glaysher <glaysher@umich.edu>
* Remove upstreamed patches:
  - debian/patches/002_675426ad62bccf1de10b0ae31dd46331ec47aacb.patch
  - debian/patches/003_5dafabf5448635c4d4526d6e35ea7ec664a27261.patch
  - debian/patches/004_boost-drop-mt.patch
  - debian/patches/005_missing-include.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
 public:
51
51
  static void SetScreenSize(const Size& s);
52
52
 
 
53
  static int ScreenHeight();
 
54
 
53
55
 public:
54
56
  Texture(SDL_Surface* surface, int x, int y, int w, int h,
55
57
          unsigned int bytes_per_pixel, int byte_order, int byte_type);
70
72
 
71
73
  void renderToScreenAsObject(
72
74
    const GraphicsObject& go,
73
 
    SDLSurface& surface,
 
75
    const SDLSurface& surface,
74
76
    const Rect& srcRect, const Rect& dstRect,
75
77
    int alpha);
76
78
 
82
84
  void renderToScreen(const Rect& src, const Rect& dst,
83
85
                      const int opacity[4]);
84
86
 
85
 
  void buildShader();
86
 
  std::string getSubtractiveShaderString();
87
 
 
88
87
 private:
89
88
  // Returns a shared buffer of at least size. This is not thread safe
90
89
  // or reenterant in the least; it is merely meant to prevent
101
100
    const Rect& src, const Rect& dst, const RGBAColour& rgba);
102
101
 
103
102
  bool filterCoords(int& x1, int& y1, int& x2, int& y2,
104
 
                    float& dx1, float& dy1, float& dx2, float& dy2);
 
103
                    int& dx1, int& dy1, int& dx2, int& dy2);
105
104
 
106
105
  int x_offset_;
107
106
  int y_offset_;
119
118
 
120
119
  GLuint back_texture_id_;
121
120
 
122
 
  GLuint shader_object_id_;
123
 
  GLuint program_object_id_;
124
 
 
125
121
  /// Is this texture upside down? (Because it's a screenshot, et cetera.)
126
122
  bool is_upside_down_;
127
123