📄 elements.h
字号:
#ifdef __BUILDING_THE_DLL
#define __EXPORT_TYPE __export
#else
#define __EXPORT_TYPE __import
#endif
//void __EXPORT_TYPE SayHello();
#include <math.h>
#include <gl\gl.h>
#include <gl\glu.h>
class BASIC
{
public:
typedef struct{
float x;
float y;
float z;
}POINT3f;
typedef struct {
float x;
float y;
float z;
}VECTOR3f;
POINT3f p_0d[25000];
POINT3f p_1d[200];
POINT3f p_2d[150][150];
private:
GLUquadricObj *O3O;
VECTOR3f _NORMAL;
POINT3f p__0d[25000];
POINT3f p__1d[200];
POINT3f p__2d[150][150];
public:
void __EXPORT_TYPE _glSpace( float width,float height,float Range,int geometry );
void __EXPORT_TYPE SetPixelFormatDescriptor( HDC hdc,int PixelFormat );
void __EXPORT_TYPE SetupLighting();
void __EXPORT_TYPE Normal( POINT3f p1,POINT3f p2,POINT3f p3 );
void __EXPORT_TYPE _glAxials( GLuint obj,float rang,float arrowRed,float arrowGreen, float arrowBlue, float lineRed,float lineGreen,float lineBlue );
void __EXPORT_TYPE _glPoints( GLuint obj, int n, float Psize,float red, float green, float blue );
void __EXPORT_TYPE _glPolygon( GLuint obj, int n, float red, float green, float blue, float alfa );
void __EXPORT_TYPE _glCube( GLuint obj,float L, float W, float H, int l,int m,int n, float Red, float Green, float Blue, float alfa );
void __EXPORT_TYPE _glDisk( GLuint obj,float r, float R, float phi1,float phi2, int m,int n, float red, float green, float blue, float alfa );
void __EXPORT_TYPE _glCylinder( GLuint obj,float r1, float r2, float H,float phi, int m,int n, float red, float green, float blue, float alfa,bool front );
void __EXPORT_TYPE _glSphere( GLuint obj,float r, float phi, float theta,int m,int n, float red, float green, float blue, float alfa,bool front );
void __EXPORT_TYPE _glRing( GLuint obj,float R, float r, float phi1,float phi2, float theta,int m,int n, float red, float green, float blue, float alfa,bool front );
void __EXPORT_TYPE _glArrow( GLuint obj,float ConicR,float ConicH,float ConicRed, float ConicGreen,float ConicBlue,float BodyR,float BodyL,float BodyRed,float BodyGreen,float BodyBlue );
void __EXPORT_TYPE _glCurve( GLuint obj,int pointNum, float red, float green, float blue );
void __EXPORT_TYPE _glSurface( GLuint obj, int m,int n, float red, float green, float blue, float alfa,bool front );
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -