Blender
V2.93
source
blender
freestyle
intern
stroke
TextStrokeRenderer.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
21
//
22
// Filename : TextStrokeRenderer.h
23
// Author(s) : Stephane Grabli
24
// Purpose : Class to define the text rendering of a stroke
25
// Format:
26
// x y width height // bbox
27
// //list of vertices :
28
// t x y z t1 t2 r g b alpha ...
29
// ...
30
// Date of creation : 01/14/2005
31
//
33
34
#ifndef TEXTSTROKERENDERER_H
35
#define TEXTSTROKERENDERER_H
36
37
#include <fstream>
38
39
#include "
StrokeRenderer.h
"
40
41
#include "../system/FreestyleConfig.h"
42
43
namespace
Freestyle
{
44
45
/**********************************/
46
/* */
47
/* */
48
/* TextStrokeRenderer */
49
/* */
50
/* */
51
/**********************************/
52
53
class
TextStrokeRenderer
:
public
StrokeRenderer
{
54
public
:
55
TextStrokeRenderer
(
const
char
*iFileName =
NULL
);
56
58
virtual
void
RenderStrokeRep
(
StrokeRep
*iStrokeRep)
const
;
59
virtual
void
RenderStrokeRepBasic
(
StrokeRep
*iStrokeRep)
const
;
60
61
protected
:
62
mutable
ofstream
_ofstream
;
63
};
64
65
}
/* namespace Freestyle */
66
67
#endif
// TEXTSTROKERENDERER_H
StrokeRenderer.h
Classes to render a stroke with OpenGL.
NULL
return NULL
Definition:
bmesh_operator_api_inline.h:224
Freestyle::StrokeRenderer
Definition:
StrokeRenderer.h:122
Freestyle::StrokeRep
Definition:
StrokeRep.h:180
Freestyle::TextStrokeRenderer
Definition:
TextStrokeRenderer.h:53
Freestyle::TextStrokeRenderer::TextStrokeRenderer
TextStrokeRenderer(const char *iFileName=NULL)
Definition:
TextStrokeRenderer.cpp:23
Freestyle::TextStrokeRenderer::_ofstream
ofstream _ofstream
Definition:
TextStrokeRenderer.h:62
Freestyle::TextStrokeRenderer::RenderStrokeRep
virtual void RenderStrokeRep(StrokeRep *iStrokeRep) const
Definition:
TextStrokeRenderer.cpp:41
Freestyle::TextStrokeRenderer::RenderStrokeRepBasic
virtual void RenderStrokeRepBasic(StrokeRep *iStrokeRep) const
Definition:
TextStrokeRenderer.cpp:46
Freestyle
inherits from class Rep
Definition:
AppCanvas.cpp:32
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1