ColorLines.h

 /*
* Copyright (C) 2009 Yuan Chuan <2eris@163.com>
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this Program.  If not, see <http://www.gnu.org/licenses/>.
*/




#ifndef COLORlINES_H_
#define COLORlINES_H_



#include<windows.h>
#include<vector>
#include "Particle.h"

const int WIN_WIDTH=GetSystemMetrics(SM_CXSCREEN);
const int WIN_HEIGHT=GetSystemMetrics(SM_CYSCREEN);

class ColorLines{
public:
//---------------------------
void DrawInit();
void DrawStart(HDC& hdc);
void UpdateState();
void DrawEnd();

   //-----------------------------
HPEN pen,pen2;
DWORD counter;
int lineNumber,lineLength,drawLines;
bool bRotateLine,bStraightLine;
Particle hole,hole2;
std::vector<Particle> dotHead,dotTail;
std::vector<Particle> dotHead2,dotTail2;

};


#endif

//------------------------------------------------------------------------------

Project Homepage: