tahoma2d/toonz/sources/include/tvectorgl.h

63 lines
1.4 KiB
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef TVECTORGL_INCLUDED
#define TVECTORGL_INCLUDED
2016-04-15 17:11:23 +12:00
#ifdef _WIN32
2016-03-19 06:57:51 +13:00
#include <windows.h>
#include <cstdlib>
2016-03-19 06:57:51 +13:00
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif
#ifdef MACOSX
#include <GLUT/glut.h>
#endif
//#include "tgeometry.h"
#include "tcommon.h"
#undef DVAPI
#undef DVVAR
#ifdef DV_LOCAL_DEFINED
#define DVAPI
#define DVVAR
#else
#ifdef TVRENDER_EXPORTS
#define DVAPI DV_EXPORT_API
#define DVVAR DV_EXPORT_VAR
#else
#define DVAPI DV_IMPORT_API
#define DVVAR DV_IMPORT_VAR
#endif
#endif
//=============================================================================
2016-06-15 18:43:10 +12:00
// forward declarations
2016-03-19 06:57:51 +13:00
class TStroke;
class TRegion;
class TVectorImage;
class TVectorRenderData;
//=============================================================================
/*!
Draw a stroke in a GL context.
\par stroke is element to draw
\par rd: \sa TVectorRenderData
*/
2018-09-11 18:41:56 +12:00
void DVAPI tglDraw(const TVectorRenderData &rd, const TVectorImage *vim,
TStroke **guidedStroke = (TStroke **)nullptr);
2016-03-19 06:57:51 +13:00
void DVAPI tglDrawMask(const TVectorRenderData &rd, const TVectorImage *vim);
2016-06-15 18:43:10 +12:00
void DVAPI tglDraw(const TVectorRenderData &rd, const TStroke *stroke,
bool pushAttribs = true);
void DVAPI tglDraw(const TVectorRenderData &rd, TRegion *r,
bool pushAttribs = true);
2016-03-19 06:57:51 +13:00
//=============================================================================
#endif