Commit f4238577 authored by Mike Kremer's avatar Mike Kremer
Browse files

Added render pass counter to GLState class. In order to provide multiple (up to 32) render passes.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7616 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 257bb632
......@@ -73,7 +73,8 @@ const float GLState::default_shininess(100.0);
GLState::GLState(bool _updateGL)
: multisampling_(false),
: render_pass_(0),
multisampling_(false),
allow_multisampling_(true),
updateGL_(_updateGL),
blending_(false),
......
......@@ -366,10 +366,24 @@ public:
float line_width() const { return line_width_; }
//--- render passes ---------------------------------------------------------
public:
/// get current render pass counter
unsigned int render_pass() const { return render_pass_; }
/// reset render pass counter
void reset_render_pass() { render_pass_ = 0; }
/// increment render pass counter
void next_render_pass() { ++render_pass_; }
private:
unsigned int render_pass_;
//--- misc ------------------------------------------------------------------
public:
/// set whether transparent or solid objects should be drawn
void set_blending(bool _b) { blending_ = _b; }
/// get whether transparenet or solid objects should be drawn
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment