~gimaker/peekabot/coord-sys-default

« back to all changes in this revision

Viewing changes to src/renderer/State.cc

  • Committer: Staffan Gimåker
  • Date: 2009-06-29 10:09:26 UTC
  • mfrom: (665.1.39 renderer-redux)
  • Revision ID: staffan@gimaker.se-20090629100926-ju5kx8jwzy422rwu
Merged the renderer-redux branch.

This represents a major overhaul to the rendering engine, with a less contrived
design and better performance. Both memory and CPU utilization should be 
better in general.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
 
2
 * Copyright Staffan Gimåker 2007-2008.
 
3
 *
 
4
 * ---
 
5
 *
2
6
 * This file is part of peekabot.
3
7
 *
4
8
 * peekabot is free software; you can redistribute it and/or modify
25
29
 
26
30
 
27
31
using namespace peekabot;
28
 
using namespace renderer;
 
32
using namespace peekabot::renderer;
29
33
 
30
34
 
31
35
State::Baseline State::ms_baseline;
99
103
}
100
104
 
101
105
 
102
 
void State::apply(const State *template_state) throw()
 
106
void State::apply(const State *template_state) const throw()
103
107
{
104
108
    /***********************************************
105
109
     *                                             *
140
144
    }
141
145
 
142
146
 
143
 
    for( Statelets::iterator it = m_statelets.begin();
 
147
    for( Statelets::const_iterator it = m_statelets.begin();
144
148
         it != m_statelets.end(); ++it )
145
149
    {
146
150
        boost::shared_ptr<Statelet> &curr_s =