doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions
DialogColorPicker.cpp File Reference
#include "../../idlib/precompiled.h"
#include "../../sys/win32/rc/Radiant_resource.h"
#include "DialogColorPicker.h"

Go to the source code of this file.

Classes

class  CMyColorDialog
 

Macros

#define SECTION   _T("Custom Colors")
 
#define RADUIS   100
 
#define IN_NOTHING   0
 
#define IN_CIRCLE   1
 
#define IN_BRIGHT   2
 
#define IN_OVERBRIGHT   3
 

Functions

COLORREF DoOldColor (COLORREF cr)
 
int Distance (CPoint pt1, CPoint pt2)
 
double Slope (CPoint pt1, CPoint pt2)
 
CPoint Intersection (LineDesc l1, LineDesc l2)
 
double FindC (LineDesc &l)
 
CPoint PointOnLine (CPoint pt1, CPoint pt2, int len, int maxlen)
 
double AngleFromPoint (CPoint pt, CPoint center)
 
CPoint PtFromAngle (double angle, double sat, CPoint center)
 
bool DoNewColor (int *i1, int *i2, int *i3, float *overBright, void(*Update)(float, float, float, float))
 

Macro Definition Documentation

#define IN_BRIGHT   2

Definition at line 158 of file DialogColorPicker.cpp.

#define IN_CIRCLE   1

Definition at line 157 of file DialogColorPicker.cpp.

#define IN_NOTHING   0

Definition at line 156 of file DialogColorPicker.cpp.

#define IN_OVERBRIGHT   3

Definition at line 159 of file DialogColorPicker.cpp.

#define RADUIS   100

Definition at line 154 of file DialogColorPicker.cpp.

#define SECTION   _T("Custom Colors")

Definition at line 81 of file DialogColorPicker.cpp.

Function Documentation

double AngleFromPoint ( CPoint  pt,
CPoint  center 
)

Definition at line 301 of file DialogColorPicker.cpp.

int Distance ( CPoint  pt1,
CPoint  pt2 
)

Definition at line 285 of file DialogColorPicker.cpp.

bool DoNewColor ( int i1,
int i2,
int i3,
float overBright,
void(*)(float, float, float, float Update 
)

Definition at line 1299 of file DialogColorPicker.cpp.

COLORREF DoOldColor ( COLORREF  cr)

Definition at line 141 of file DialogColorPicker.cpp.

double FindC ( LineDesc l)

Definition at line 211 of file DialogColorPicker.cpp.

CPoint Intersection ( LineDesc  l1,
LineDesc  l2 
)

Definition at line 176 of file DialogColorPicker.cpp.

CPoint PointOnLine ( CPoint  pt1,
CPoint  pt2,
int  len,
int  maxlen 
)

Definition at line 226 of file DialogColorPicker.cpp.

CPoint PtFromAngle ( double  angle,
double  sat,
CPoint  center 
)

Definition at line 317 of file DialogColorPicker.cpp.

double Slope ( CPoint  pt1,
CPoint  pt2 
)

Definition at line 164 of file DialogColorPicker.cpp.