|
Shinya Kitaoka |
810553 |
#pragma once
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifndef TVECTORGL_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
#define TVECTORGL_INCLUDED
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
9f5a1b |
#ifdef _WIN32
|
|
Toshihiro Shimizu |
890ddd |
#include <windows.h></windows.h>
|
|
Shinya Kitaoka |
d4642c |
#include <cstdlib></cstdlib>
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include <gl gl.h=""></gl>
|
|
Toshihiro Shimizu |
890ddd |
#include <gl glu.h=""></gl>
|
|
Toshihiro Shimizu |
890ddd |
#include <gl glut.h=""></gl>
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifdef MACOSX
|
|
Toshihiro Shimizu |
890ddd |
#include <glut glut.h=""></glut>
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//#include "tgeometry.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tcommon.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#undef DVAPI
|
|
Toshihiro Shimizu |
890ddd |
#undef DVVAR
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#ifdef DV_LOCAL_DEFINED
|
|
Toshihiro Shimizu |
890ddd |
#define DVAPI
|
|
Toshihiro Shimizu |
890ddd |
#define DVVAR
|
|
Toshihiro Shimizu |
890ddd |
#else
|
|
Toshihiro Shimizu |
890ddd |
#ifdef TVRENDER_EXPORTS
|
|
Toshihiro Shimizu |
890ddd |
#define DVAPI DV_EXPORT_API
|
|
Toshihiro Shimizu |
890ddd |
#define DVVAR DV_EXPORT_VAR
|
|
Toshihiro Shimizu |
890ddd |
#else
|
|
Toshihiro Shimizu |
890ddd |
#define DVAPI DV_IMPORT_API
|
|
Toshihiro Shimizu |
890ddd |
#define DVVAR DV_IMPORT_VAR
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
#endif
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//=============================================================================
|
|
Shinya Kitaoka |
120a6e |
// forward declarations
|
|
Toshihiro Shimizu |
890ddd |
class TStroke;
|
|
Toshihiro Shimizu |
890ddd |
class TRegion;
|
|
Toshihiro Shimizu |
890ddd |
class TVectorImage;
|
|
Toshihiro Shimizu |
890ddd |
class TVectorRenderData;
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//=============================================================================
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
/*!
|
|
Toshihiro Shimizu |
890ddd |
Draw a stroke in a GL context.
|
|
Toshihiro Shimizu |
890ddd |
\par stroke is element to draw
|
|
Toshihiro Shimizu |
890ddd |
\par rd: \sa TVectorRenderData
|
|
Toshihiro Shimizu |
890ddd |
*/
|
|
shun-iwasawa |
18a7c6 |
void DVAPI tglDraw(const TVectorRenderData &rd, const TVectorImage *vim,
|
|
shun-iwasawa |
18a7c6 |
TStroke **guidedStroke = (TStroke **)nullptr);
|
|
Toshihiro Shimizu |
890ddd |
void DVAPI tglDrawMask(const TVectorRenderData &rd, const TVectorImage *vim);
|
|
Shinya Kitaoka |
120a6e |
void DVAPI tglDraw(const TVectorRenderData &rd, const TStroke *stroke,
|
|
Shinya Kitaoka |
120a6e |
bool pushAttribs = true);
|
|
Shinya Kitaoka |
120a6e |
void DVAPI tglDraw(const TVectorRenderData &rd, TRegion *r,
|
|
Shinya Kitaoka |
120a6e |
bool pushAttribs = true);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//=============================================================================
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|