~ubuntu-branches/ubuntu/utopic/mir/utopic-proposed

« back to all changes in this revision

Viewing changes to src/server/compositor/gl_renderer.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-03-10 19:28:46 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: package-import@ubuntu.com-20140310192846-rq9qm3ec26yrelo2
Tags: upstream-0.1.6+14.04.20140310
ImportĀ upstreamĀ versionĀ 0.1.6+14.04.20140310

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    virtual ~GLRenderer() noexcept;
38
38
 
39
39
    // These are called with a valid GL context:
40
 
    void begin(float rotation) const override;
 
40
    void set_viewport(geometry::Rectangle const& rect) override;
 
41
    void set_rotation(float degrees) override;
 
42
    void begin() const override;
41
43
    void render(CompositingCriteria const& info, graphics::Buffer& buffer) const override;
42
44
    void end() const override;
43
45
 
54
56
    GLuint transform_uniform_loc;
55
57
    GLuint alpha_uniform_loc;
56
58
    GLuint vertex_attribs_vbo;
 
59
    float rotation;
 
60
 
 
61
    geometry::Rectangle viewport;
57
62
 
58
63
    typedef CompositingCriteria const* SurfaceID;
59
64
    struct Texture