solvespace/dsc.h
Jonathan Westhues e426fe8a53 Start to add OpenGL support to SolveSpace, for the graphical view.
I've got the user interface to pan and rotate an object, more or
less works.

[git-p4: depot-paths = "//depot/solvespace/": change = 1654]
2008-03-27 01:53:51 -08:00

42 lines
695 B
C++

#ifndef __DSC_H
#define __DSC_H
typedef unsigned long DWORD;
typedef unsigned char BYTE;
typedef struct VectorTag Vector;
typedef struct VectorTag {
double x, y, z;
Vector Cross(Vector b);
double Vector::Dot(Vector b);
Vector RotatedAbout(Vector axis, double theta);
double Magnitude(void);
Vector ScaledBy(double v);
} Vector;
typedef struct {
double x, y;
} Point2d;
template <class T, class H> struct IdList {
typedef struct {
T v;
int tag;
} Elem;
Elem elem;
int elems;
int elemsAllocated;
void addAndAssignId(T *v);
void removeTagged(void);
void clear(void);
};
#endif