Namespaces | Defines | Functions

p_rect.cpp File Reference

#include "vgfx.h"
#include "drawer.h"
#include "common/wave_ex.h"
#include "perf/perf.h"
#include "util/parsing.h"
Include dependency graph for p_rect.cpp:

Go to the source code of this file.

Namespaces

namespace  vgfx

Defines

#define WRITE_R_FIELD(q)   { if (m_rect.q) { stream << " " << #q << " " << m_rect.q; } }
#define ADD_R_VALUE(q)   { data[ #q ] = getStringValue( m_rect.q ); }
#define CHECK_R_VALUE(q)   { if (!strcmp(name, #q )) { m_rect.q = atof(value); continue; } }
#define SET_R_FIELD(x)   init.rect.x = atof(getOptionalValue(data, #x , "0.0"));

Functions

void vgfx::init_rect_from_data (const dictionary_t &data, init_rect_t &init)
smart_ptr< Primitive > vgfx::create_rect (const init_rect_t &init)

Define Documentation

#define WRITE_R_FIELD (   q  )     { if (m_rect.q) { stream << " " << #q << " " << m_rect.q; } }

Definition at line 117 of file p_rect.cpp.

#define ADD_R_VALUE (   q  )     { data[ #q ] = getStringValue( m_rect.q ); }

Definition at line 176 of file p_rect.cpp.

#define CHECK_R_VALUE (   q  )     { if (!strcmp(name, #q )) { m_rect.q = atof(value); continue; } }

Definition at line 200 of file p_rect.cpp.

#define SET_R_FIELD (   x  )     init.rect.x = atof(getOptionalValue(data, #x , "0.0"));

Definition at line 259 of file p_rect.cpp.