KiCad PCB EDA Suite
Loading...
Searching...
No Matches
vrml_layer.cpp File Reference
#include <kicad_gl/kiglu.h>
#include <sstream>
#include <string>
#include <iomanip>
#include <cmath>
#include <io/idf/vrml_layer.h>
#include <trigo.h>

Go to the source code of this file.

Macros

#define CALLBACK
 
#define GLCALLBACK(x)
 
#define MIN_NSIDES   6
 

Functions

static void FormatDoublet (double x, double y, int precision, std::string &strx, std::string &stry)
 
static void FormatSinglet (double x, int precision, std::string &strx)
 
static void CALLBACK vrml_tess_begin (GLenum cmd, void *user_data)
 
static void CALLBACK vrml_tess_end (void *user_data)
 
static void CALLBACK vrml_tess_vertex (void *vertex_data, void *user_data)
 
static void CALLBACK vrml_tess_err (GLenum errorID, void *user_data)
 
static void CALLBACK vrml_tess_combine (GLdouble coords[3], VERTEX_3D *vertex_data[4], GLfloat weight[4], void **outData, void *user_data)
 

Macro Definition Documentation

◆ CALLBACK

◆ GLCALLBACK

#define GLCALLBACK ( x)
Value:
(( void (CALLBACK*)() )&(x))
#define CALLBACK

Definition at line 43 of file vrml_layer.cpp.

Referenced by VRML_LAYER::VRML_LAYER().

◆ MIN_NSIDES

#define MIN_NSIDES   6

Definition at line 46 of file vrml_layer.cpp.

Referenced by VRML_LAYER::AppendCircle().

Function Documentation

◆ FormatDoublet()

static void FormatDoublet ( double x,
double y,
int precision,
std::string & strx,
std::string & stry )
static

Definition at line 48 of file vrml_layer.cpp.

Referenced by VRML_LAYER::Write3DVertices(), and VRML_LAYER::WriteVertices().

◆ FormatSinglet()

static void FormatSinglet ( double x,
int precision,
std::string & strx )
static

Definition at line 69 of file vrml_layer.cpp.

Referenced by VRML_LAYER::Write3DVertices(), and VRML_LAYER::WriteVertices().

◆ vrml_tess_begin()

static void CALLBACK vrml_tess_begin ( GLenum cmd,
void * user_data )
static

Definition at line 114 of file vrml_layer.cpp.

References CALLBACK, and VRML_LAYER::glStart().

Referenced by VRML_LAYER::VRML_LAYER().

◆ vrml_tess_combine()

static void CALLBACK vrml_tess_combine ( GLdouble coords[3],
VERTEX_3D * vertex_data[4],
GLfloat weight[4],
void ** outData,
void * user_data )
static

Definition at line 147 of file vrml_layer.cpp.

References VRML_LAYER::AddExtraVertex(), CALLBACK, and VERTEX_3D::pth.

Referenced by VRML_LAYER::VRML_LAYER().

◆ vrml_tess_end()

static void CALLBACK vrml_tess_end ( void * user_data)
static

Definition at line 122 of file vrml_layer.cpp.

References CALLBACK, and VRML_LAYER::glEnd().

Referenced by VRML_LAYER::VRML_LAYER().

◆ vrml_tess_err()

static void CALLBACK vrml_tess_err ( GLenum errorID,
void * user_data )
static

Definition at line 138 of file vrml_layer.cpp.

References CALLBACK, VRML_LAYER::Fault, and VRML_LAYER::SetGLError().

Referenced by VRML_LAYER::VRML_LAYER().

◆ vrml_tess_vertex()

static void CALLBACK vrml_tess_vertex ( void * vertex_data,
void * user_data )
static

Definition at line 130 of file vrml_layer.cpp.

References CALLBACK, and VRML_LAYER::glPushVertex().

Referenced by VRML_LAYER::VRML_LAYER().