GlSequence(const GlSequence & s);
GlSequence &operator=(const GlSequence &s);
- void draw() const;
+ //! draw a track
+ /*! left and right are the current edges of the viewable world
+ */
+ void draw(GLfloat left, GLfloat right) const;
- const Sequence &sequence() const;
+ const Sequence& sequence() const;
void setX(GLfloat);
GLfloat x() const;
void setY(GLfloat);
void setWidth(GLfloat);
GLfloat width() const;
-private:
+protected:
const Sequence& seq;
GLfloat seq_x;
GLfloat seq_y;
GLfloat seq_z;
GLfloat seq_width;
GLfloat seq_height;
+
+ //! render a sequence (if we have enough space
+ /*! left and right are the current edges of the viewable world
+ */
+ void draw_sequence(GLfloat, GLfloat) const;
};
const float gl_track_height = 10.0;