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

« back to all changes in this revision

Viewing changes to test/TestSystem/TestGraphicsSystem.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:
38
38
 
39
39
class System;
40
40
class MockSurface;
 
41
class MockColourFilter;
41
42
 
42
43
class TestGraphicsSystem : public GraphicsSystem {
43
44
 public:
44
45
  TestGraphicsSystem(System& system, Gameexe& gexe);
 
46
  virtual ~TestGraphicsSystem();
45
47
 
46
48
  virtual void executeGraphicsSystem(RLMachine& machine) {
47
49
    GraphicsSystem::executeGraphicsSystem(machine);
63
65
  virtual GraphicsObject& getObject(int layer, int obj_number);
64
66
 
65
67
  // Make a null Surface object?
66
 
  virtual boost::shared_ptr<Surface> loadNonCGSurfaceFromFile(
 
68
  virtual boost::shared_ptr<const Surface> loadSurfaceFromFile(
67
69
      const std::string& short_filename);
68
70
  virtual boost::shared_ptr<Surface> getHaikei();
69
71
  virtual boost::shared_ptr<Surface> getDC(int dc);
70
72
  virtual boost::shared_ptr<Surface> buildSurface(const Size& s);
71
 
  virtual void fillScreenArea(const Rect& rect, const RGBAColour& colour);
 
73
  virtual ColourFilter* BuildColourFiller();
72
74
 
73
75
  virtual void blitSurfaceToDC(
74
76
      Surface& source_obj, int target_dc,
76
78
      int destX, int destY, int dest_width, int dest_height,
77
79
      int alpha = 255);
78
80
 
 
81
  virtual void beginFrame() {}
 
82
  virtual void endFrame() {}
79
83
  virtual boost::shared_ptr<Surface> endFrameToSurface() {
80
84
    return boost::shared_ptr<Surface>();
81
85
  }
90
94
  boost::shared_ptr<MockSurface> display_contexts_[16];
91
95
 
92
96
  // A list of user injected surfaces to hand back for named files.
93
 
  std::map<std::string, boost::shared_ptr<Surface> > named_surfaces_;
 
97
  std::map<std::string, boost::shared_ptr<const Surface> > named_surfaces_;
94
98
};
95
99
 
96
100
#endif  // TEST_TESTSYSTEM_TESTGRAPHICSSYSTEM_HPP_