~gimaker/peekabot/coord-sys-default

« back to all changes in this revision

Viewing changes to src/renderer/Mesh.hh

  • 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
15
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
20
 */
17
21
 
18
 
#ifndef __PEEKABOT_RENDERER_MESH_HH
19
 
#define __PEEKABOT_RENDERER_MESH_HH
 
22
#ifndef PEEKABOT_RENDERER_MESH_HH_INCLUDED
 
23
#define PEEKABOT_RENDERER_MESH_HH_INCLUDED
20
24
 
21
25
 
22
26
#include <stdexcept>
152
156
 
153
157
        virtual uint32_t vertices_per_element() const throw();
154
158
 
155
 
        virtual void render(RenderContext &context) throw();
 
159
        virtual void render(RenderContext &context) const;
156
160
 
157
161
        void set_normals(boost::shared_ptr<VertexBuffer> normals) throw();
158
162
 
178
182
 
179
183
        virtual uint32_t vertices_per_element() const throw();
180
184
 
181
 
        virtual void render(RenderContext &context) throw();
 
185
        virtual void render(RenderContext &context) const;
182
186
 
183
187
        virtual void accept(MeshVisitor &visitor) throw();
184
188
    };
199
203
 
200
204
        virtual uint32_t vertices_per_element() const throw();
201
205
 
202
 
        virtual void render(RenderContext &context) throw();
 
206
        virtual void render(RenderContext &context) const;
203
207
 
204
208
        virtual void accept(MeshVisitor &visitor) throw();
205
209
    };
208
212
}
209
213
 
210
214
 
211
 
#endif // __PEEKABOT_RENDERER_MESH_HH
 
215
#endif // PEEKABOT_RENDERER_MESH_HH_INCLUDED