1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#ifndef _glight_h_
#define _glight_h_
#include<glut.h>
class CLight_Colour
{
public:
void Snake_Material(); //colour and lighting
void Food_Red();//sets colour to objects (want 2 use it 4 food)
void Food_Green();//sets colour to objects (want 2 use it 4 food)
void Food_Yellow();//sets colour to objects (want 2 use it 4 food)
void Food_Blue();//sets colour to objects (want 2 use it 4 food)
void init_lighting();//this func must be initilised before game starts
private:
//colours
GLfloat qaGrey[] = {4.0, 4.0, 4.0, 1.0};
GLfloat qaRed[] = {1.0, 0.0, 0.0, 1.0};
GLfloat qaWhite[] = {1.0, 1.0, 1.0, 1.0};
GLfloat qaGreen[] = {0.0, 1.0, 0.0, 1.0};
GLfloat qaYellow[] = {1.0, 1.0, 0.0, 1.0};
GLfloat qaBlue[] = {0.0, 0.0, 1.0, 1.0};
};
|