trase
Backend.hpp File Reference
#include <cmath>
#include <sstream>
#include <vector>
#include "util/Vector.hpp"
#include "frontend/Drawable.hpp"
Include dependency graph for Backend.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  trase::Backend
 a base class for all the backends that support drawing a single frame More...
 
class  trase::AnimatedBackend
 a base class for all the backends that support animation over time More...
 
struct  trase::TransformMatrix
 a transform matrix in the form More...
 
class  trase::FontManager
 

Macros

#define TRASE_BACKEND_VISITABLE()
 
#define TRASE_ANIMATED_BACKEND_VISITABLE()   void accept(Drawable &drawable) override { drawable.dispatch(*this); }
 

Enumerations

enum  Align : unsigned int {
  ALIGN_LEFT = 1u << 0u, ALIGN_CENTER = 1u << 1u, ALIGN_RIGHT = 1u << 2u, ALIGN_TOP = 1u << 3u,
  ALIGN_MIDDLE = 1u << 4u, ALIGN_BOTTOM = 1u << 5u, ALIGN_BASELINE = 1u << 6u
}
 
enum  ArcDirection { CLOCKWISE = 1u << 0u, COUNTER_CLOCKWISE = 1u << 1u }
 

Variables

const float trase::pi
 

Macro Definition Documentation

◆ TRASE_BACKEND_VISITABLE

#define TRASE_BACKEND_VISITABLE ( )
Value:
void accept(Drawable &drawable, float time) override { \
drawable.dispatch(*this, time); \
}

Variable Documentation

◆ pi

const float trase::pi
Initial value:
=
3.141592653589793238462643383279502884197169399375105820974944592307816406286f