2
* ***** BEGIN GPL LICENSE BLOCK *****
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.
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.
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.
18
* ***** END GPL LICENSE BLOCK *****
21
#ifndef __BLENDER_STROKE_RENDERER_H__
22
#define __BLENDER_STROKE_RENDERER_H__
24
/** \file blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.h
28
#include "../stroke/StrokeRenderer.h"
29
#include "../system/FreestyleConfig.h"
32
#include "DNA_material_types.h"
33
#include "DNA_scene_types.h"
37
#include "render_types.h"
42
class LIB_STROKE_EXPORT BlenderStrokeRenderer : public StrokeRenderer
45
BlenderStrokeRenderer(Render *re, int render_count);
46
virtual ~BlenderStrokeRenderer();
48
/*! Renders a stroke rep */
49
virtual void RenderStrokeRep(StrokeRep *iStrokeRep) const;
50
virtual void RenderStrokeRepBasic(StrokeRep *iStrokeRep) const;
52
Object *NewMesh() const;
54
Render *RenderScene(Render *re, bool render);
57
Main *freestyle_bmain;
59
Scene *freestyle_scene;
61
float _width, _height;
63
unsigned int _mesh_id;
65
float get_stroke_vertex_z(void) const;
66
unsigned int get_stroke_mesh_id(void) const;
69
} /* namespace Freestyle */
71
#endif // __BLENDER_STROKE_RENDERER_H__