// opengl画直线程序框架.cpp : 定义应用程序的入口点。
//
//鼠标画线小程序
#include "stdafx.h"
#include "opengl画直线程序框架.h"
#include <glut.h>
#include <math.h>
#define N 1000 //maximum line numbers
#define Pi 3.14159
int ww, hh; // for display window width and height
int line[N][4], k = 0; //for line's endpoint coordinates and line number
void Myinit(void);
void Reshape(int w, int h);
void myMouse(int button, int state, int x, int y);
void myMotion(int x, int y);
void Display(void);
void drawlines();
void drawRect();
void drawCircular();
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
char *argv[] = { "hello ", "