Blender V4.3
TextStrokeRenderer.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9//
10// Filename : TextStrokeRenderer.h
11// Author(s) : Stephane Grabli
12// Purpose : Class to define the text rendering of a stroke
13// Format:
14// x y width height // bbox
15// //list of vertices :
16// t x y z t1 t2 r g b alpha ...
17// ...
18// Date of creation : 01/14/2005
19//
21
22#ifndef TEXTSTROKERENDERER_H
23#define TEXTSTROKERENDERER_H
24
25#include <fstream>
26
27#include "StrokeRenderer.h"
28
30
31namespace Freestyle {
32
33/**********************************/
34/* */
35/* */
36/* TextStrokeRenderer */
37/* */
38/* */
39/**********************************/
40
42 public:
43 TextStrokeRenderer(const char *iFileName = nullptr);
44
46 virtual void RenderStrokeRep(StrokeRep *iStrokeRep) const;
47 virtual void RenderStrokeRepBasic(StrokeRep *iStrokeRep) const;
48
49 protected:
50 mutable ofstream _ofstream;
51};
52
53} /* namespace Freestyle */
54
55#endif // TEXTSTROKERENDERER_H
Configuration definitions.
Classes to render a stroke with OpenGL.
virtual void RenderStrokeRep(StrokeRep *iStrokeRep) const
TextStrokeRenderer(const char *iFileName=nullptr)
virtual void RenderStrokeRepBasic(StrokeRep *iStrokeRep) const
inherits from class Rep
Definition AppCanvas.cpp:20