Files
test2/source/blender/freestyle/intern/stroke/TextStrokeRenderer.h
Campbell Barton c434782e3a File headers: SPDX License migration
Use a shorter/simpler license convention, stops the header taking so
much space.

Follow the SPDX license specification: https://spdx.org/licenses

- C/C++/objc/objc++
- Python
- Shell Scripts
- CMake, GNUmakefile

While most of the source tree has been included

- `./extern/` was left out.
- `./intern/cycles` & `./intern/atomic` are also excluded because they
  use different header conventions.

doc/license/SPDX-license-identifiers.txt has been added to list SPDX all
used identifiers.

See P2788 for the script that automated these edits.

Reviewed By: brecht, mont29, sergey

Ref D14069
2022-02-11 09:14:36 +11:00

54 lines
1.3 KiB
C++

/* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup freestyle
*/
//
// Filename : TextStrokeRenderer.h
// Author(s) : Stephane Grabli
// Purpose : Class to define the text rendering of a stroke
// Format:
// x y width height // bbox
// //list of vertices :
// t x y z t1 t2 r g b alpha ...
// ...
// Date of creation : 01/14/2005
//
///////////////////////////////////////////////////////////////////////////////
#ifndef TEXTSTROKERENDERER_H
#define TEXTSTROKERENDERER_H
#include <fstream>
#include "StrokeRenderer.h"
#include "../system/FreestyleConfig.h"
namespace Freestyle {
/**********************************/
/* */
/* */
/* TextStrokeRenderer */
/* */
/* */
/**********************************/
class TextStrokeRenderer : public StrokeRenderer {
public:
TextStrokeRenderer(const char *iFileName = NULL);
/** Renders a stroke rep */
virtual void RenderStrokeRep(StrokeRep *iStrokeRep) const;
virtual void RenderStrokeRepBasic(StrokeRep *iStrokeRep) const;
protected:
mutable ofstream _ofstream;
};
} /* namespace Freestyle */
#endif // TEXTSTROKERENDERER_H