Main Page | Namespace List | Class List | File List | Class Members | File Members

video_colors.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   NGT (Neopontec Gaming Toolkit                                         *
00003  *   Distributed under the terms of the GNU LGPL License                   *
00004  *   Copyright (C) 2005 by Hector Blanco de Frutos                         *
00005  *   hectorblanco@neopontec.com                                            *
00006  *   Refer to the LICENSE file to read the full license agreement          *
00007  ***************************************************************************/
00008 
00009 #include "video_colors.h"
00010 
00011 
00012 NGT_Colors::NGT_Colors(){
00013         initialize();   
00014 }
00015 
00016 void NGT_Colors::initialize(){
00017         SDL_Color dummycolor;
00018         
00019         //Black
00020     dummycolor.r=0;
00021     dummycolor.g=0;
00022     dummycolor.b=0;
00023     darkgrey=dummycolor;
00024     
00025     //White
00026     dummycolor.r=255;
00027     dummycolor.g=255;
00028     dummycolor.b=255;
00029     white=dummycolor;
00030      
00031     //Grey
00032     dummycolor.r=210;
00033     dummycolor.g=210;
00034     dummycolor.b=210;
00035     grey=dummycolor;
00036     
00037     //Dark Grey
00038     dummycolor.r=135;
00039     dummycolor.g=135;
00040     dummycolor.b=135;
00041     darkgrey=dummycolor;
00042     
00043     //Violet
00044     dummycolor.r=185;
00045     dummycolor.g=0;
00046     dummycolor.b=255;
00047     violet=dummycolor;
00048     
00049     //VioletBlue
00050     dummycolor.r=165;
00051     dummycolor.g=115;
00052     dummycolor.b=255;
00053     violetblue=dummycolor;
00054     
00055     //Yelloy
00056     dummycolor.r=255;
00057     dummycolor.g=255;
00058     dummycolor.b=0;
00059     yellow=dummycolor;
00060     
00061     //Dark Yelloy
00062     dummycolor.r=217;
00063     dummycolor.g=207;
00064     dummycolor.b=44;
00065     darkyellow=dummycolor;
00066     
00067     //Light Blue
00068     dummycolor.r=155;
00069     dummycolor.g=255;
00070     dummycolor.b=255;
00071     lightblue=dummycolor;
00072         
00073         
00074 }
00075 
00076 
00077 

Generated on Wed Feb 1 00:07:07 2006 for Neopntec Gaming Toolkit - API reference by  doxygen 1.4.4