ArmageTron_color_menuitem Class Reference

Inheritance diagram for ArmageTron_color_menuitem:

Inheritance graph
[legend]
Collaboration diagram for ArmageTron_color_menuitem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ArmageTron_color_menuitem (uMenu *m, const char *tit, const char *help, int *RGB, int Me)
 ~ArmageTron_color_menuitem ()
virtual REAL SpaceRight ()
virtual void RenderBackground ()

Protected Attributes

int * rgb
unsigned short me


Detailed Description

Definition at line 784 of file gMenus.cpp.


Constructor & Destructor Documentation

ArmageTron_color_menuitem::ArmageTron_color_menuitem ( uMenu m,
const char *  tit,
const char *  help,
int *  RGB,
int  Me 
) [inline]

Definition at line 789 of file gMenus.cpp.

References uMenu::RequestSpaceBelow().

00791             :uMenuItemInt(m,tit,help,RGB[Me],0,15),
00792     rgb(RGB),me(Me) {
00793         m->RequestSpaceBelow(.2);
00794     }

Here is the call graph for this function:

ArmageTron_color_menuitem::~ArmageTron_color_menuitem (  )  [inline]

Definition at line 796 of file gMenus.cpp.

00796 {};


Member Function Documentation

virtual REAL ArmageTron_color_menuitem::SpaceRight (  )  [inline, virtual]

Reimplemented from uMenuItem.

Definition at line 798 of file gMenus.cpp.

00798 {return .2;}

virtual void ArmageTron_color_menuitem::RenderBackground (  )  [inline, virtual]

Reimplemented from uMenuItem.

Definition at line 801 of file gMenus.cpp.

References b, REAL, uMenuItem::RenderBackground(), se_MakeColorValid(), and sr_glOut.

00801                                    {
00802         //    static int count=0;
00803         /*
00804         while(rgb[0]+rgb[1]+rgb[2]<13){
00805           if (rgb[count]<15)
00806         rgb[count]++;
00807           count++;
00808           if (count>2)
00809         count=0;
00810         }
00811         */
00812 #ifndef DEDICATED
00813         if (!sr_glOut)
00814             return;
00815         uMenuItem::RenderBackground();
00816         REAL r = rgb[0]/15.0;
00817         REAL g = rgb[1]/15.0;
00818         REAL b = rgb[2]/15.0;
00819         se_MakeColorValid(r, g, b, 1.0f);
00820         glColor3f(r, g, b);
00821         glRectf(.8,-.8,.98,-.98);
00822 #endif
00823     }

Here is the call graph for this function:


Member Data Documentation

int* ArmageTron_color_menuitem::rgb [protected]

Definition at line 786 of file gMenus.cpp.

unsigned short ArmageTron_color_menuitem::me [protected]

Definition at line 787 of file gMenus.cpp.


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:20:33 2008 for Armagetron Advanced by  doxygen 1.5.4