~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU General Public License
 
6
 * as published by the Free Software Foundation; either version 2
 
7
 * of the License, or (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software Foundation,
 
16
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
17
 *
 
18
 * ***** END GPL LICENSE BLOCK *****
 
19
 */
 
20
 
 
21
#ifndef __BLENDER_STROKE_RENDERER_H__
 
22
#define __BLENDER_STROKE_RENDERER_H__
 
23
 
 
24
/** \file blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.h
 
25
 *  \ingroup freestyle
 
26
 */
 
27
 
 
28
#include "../stroke/StrokeRenderer.h"
 
29
#include "../system/FreestyleConfig.h"
 
30
 
 
31
extern "C" {
 
32
#include "DNA_material_types.h"
 
33
#include "DNA_scene_types.h"
 
34
 
 
35
#include "BKE_main.h"
 
36
 
 
37
#include "render_types.h"
 
38
}
 
39
 
 
40
namespace Freestyle {
 
41
 
 
42
class LIB_STROKE_EXPORT BlenderStrokeRenderer : public StrokeRenderer
 
43
{
 
44
public:
 
45
        BlenderStrokeRenderer(Render *re, int render_count);
 
46
        virtual ~BlenderStrokeRenderer();
 
47
 
 
48
        /*! Renders a stroke rep */
 
49
        virtual void RenderStrokeRep(StrokeRep *iStrokeRep) const;
 
50
        virtual void RenderStrokeRepBasic(StrokeRep *iStrokeRep) const;
 
51
 
 
52
        Object *NewMesh() const;
 
53
 
 
54
        Render *RenderScene(Render *re, bool render);
 
55
 
 
56
protected:
 
57
        Main *freestyle_bmain;
 
58
        Scene *old_scene;
 
59
        Scene *freestyle_scene;
 
60
        Material *material;
 
61
        float _width, _height;
 
62
        float _z, _z_delta;
 
63
        unsigned int _mesh_id;
 
64
 
 
65
        float get_stroke_vertex_z(void) const;
 
66
        unsigned int get_stroke_mesh_id(void) const;
 
67
};
 
68
 
 
69
} /* namespace Freestyle */
 
70
 
 
71
#endif // __BLENDER_STROKE_RENDERER_H__