try
- #ifndef _PICK_A_NAME
-
#define _PICK_A_NAME
-
. . .
-
#endif
Yeah I dont under stand why that is not working! Here is my code:
#ifndef DEFINE_VAR_HH
#define DEFINE_VAR_HH
//NEEDED INCLUDE FILES
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <math.h>
//OPEN GL INCLUDE FILES FOR MAC
#include <GLUT/glut.h>
#include <OpenGL/glext.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
//DEFINE NEEDED CONSTANTS
#define find_max_or_min(testvalue) \
{ \
if (testvalue > paddle_max) { testvalue = paddle_max; } \
else if (testvalue < paddle_min) { testvalue = paddle_min; } \
}
#define PI 3.14159265359
//NEEDED GLOBAL VARIABLES
//SET ALL GAME VARIABLES AND WINDOW SETTINGS
GLfloat screen_length = 400;
GLfloat screen_height = 425;
GLfloat number_of_players = 2;
GLfloat content_space = 25;
//SET VARIABLES FOR WALL DEVELOPMENT
GLfloat NUM_PARTS_WALL = 2;
GLfloat wall_height = 10;
GLfloat wall_length = 370;
GLfloat wall_x_position = 10;
GLfloat wall_border= 10;
GLfloat wall_red = 0.0;
GLfloat wall_blue = 0.0;
GLfloat wall_green = 1.0;
//SET VARIABLES FOR PADDLE DEVELOPMENT
GLfloat paddle_height = 75;
GLfloat paddle_length = 10;
GLfloat paddle_x_position = 0;
GLfloat paddle_y_position = 0;
GLfloat paddle_red = 0.40;
GLfloat paddle_blue = 0.85;
GLfloat paddle_green = 0.0;
//SET VARIABLES FOR BALL DEVELOPMENT
GLfloat ball_radius = 7;
GLfloat ball_x_position = 0;
GLfloat ball_y_position = 0;
GLfloat ball_red = 1;
GLfloat ball_green = 1;
GLfloat ball_blue = 1;
#endif
The game is PONG!