/*
    This file is part of Society Chess.
    Society Chess is a network chess game.
    Copyright (C) 2011  Sterling Pickens

    This program 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 program 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 _OPENGL_H
#define _OPENGL_H 1

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <pthread.h>
#include <GL/glut.h>
#include <GL/gl.h>
#include <sys/types.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#include <unistd.h>
//#define RESTART 2
//#define PAUSED 3
//#define EXIT 4
#include "extern_globals.h"
#include "movement.h"

extern int My_argc;
extern char **My_argv;

//0 white 1 black
extern int my_team_color;
//0 no 1 yes
extern int my_turn;
extern int IS_Server;
extern int Send_OK;
extern int check;
extern int op_check;
extern int checkmate;
extern int op_checkmate;
extern int local_game;

//extern struct movement move;
extern struct pieces my_pieces[16];
extern struct pieces oponent_pieces[16];

void *Create_OpenGL(void *data);
//void processMouse(int button, int state, int x, int y);
/*
void OpenGLInit(void);
void Animate(void );
void ResizeWindow(int w, int h);
int glutCreateMenu(void (*func)(int value));
void glutAttachMenu(int button);
void processMenuEvents(int option);
void keyboard (unsigned char key, int x, int y);
void processMouse(int button, int state, int x, int y);
void Adjust_Bounds(void);
void initLightAndMaterial(void);
*/


#endif
