~ubuntu-branches/ubuntu/maverick/stormbaancoureur/maverick

« back to all changes in this revision

Viewing changes to src-common/stereocontext.h

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese, Jon Dowland, Paul Wise
  • Date: 2008-01-03 10:47:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080103104741-kbt7suy6ciaapgyf
Tags: 2.1.1-1
[ Barry deFreese ]
* New upstream release. (Closes: #461149).
  + Upstream has replaced potentially non-free engine.tga file.
  + Update patches for new upstream.
* Add myself to uploaders.
* Remove deprecated Encoding tag from desktop file.
* Remove XS- prefix from VCS fields.
* Remove Homepage field from package descriptions.
* Version debhelper build-depends for dh_icons (>= 5.0.51).
* Bump Standards Version to 3.7.3 (No changes needed).
* Add call to dh_desktop in rules.

[ Jon Dowland ]
* add Homepage: to source stanza.

[ Paul Wise ]
* Call dh_icons to update icon caches.
* Improve the description for the data package.
* Clean up the watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
      near(0.4),
15
15
      far(250),
16
16
      winw(1024),
17
 
      winh(768)
 
17
      winh(768),
 
18
      last_context(0)
18
19
    {
19
20
      contexts[0] = new ssgContext();
20
21
      contexts[1] = new ssgContext();
30
31
 
31
32
    void MakeCurrent(const std::string &channel)
32
33
    {
33
 
      assert(channel=="left" || channel=="right" || channel=="center");
 
34
      assert(channel=="left" || channel=="right" || channel=="center" || channel=="last");
34
35
 
35
36
      ssgContext *context=0;
 
37
      if (channel=="last")  context=last_context;
36
38
      if (channel=="left")  context=contexts[0];
37
39
      if (channel=="right") context=contexts[1];
38
40
      assert(context);
 
41
      last_context = context;
39
42
 
40
43
      if (quadbuffered)
41
44
      {
112
115
      sgNormalizeVec3(cam_dir);
113
116
    }
114
117
    bool IsQuadBuffered(void) const { return quadbuffered; }
 
118
    void getModelviewMatrix(sgMat4 m) { last_context->getModelviewMatrix(m); }
115
119
 
116
120
  protected:
117
121
 
128
132
    sgVec3 cam_up;              // unit vector
129
133
 
130
134
    ssgContext *contexts[2];    // 0 is L, 1 is R
 
135
    ssgContext *last_context;
131
136
};
132
137
 
133
138
#endif