Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Color.cpp
Package: display_list.zip [view]
Upload User: hcfgz168
Upload Date: 2011-09-11
Package Size: 116k
Code Size: 1k
Category:
OpenGL program
Development Platform:
WINDOWS
- //********************************************
- // Color.cpp
- //********************************************
- // class CColor
- //********************************************
- // pierre.alliez@cnet.francetelecom.fr
- // Created : 10/12/97
- // Modified : 09/02/98
- //********************************************
- #include "stdafx.h"
- #include "Color.h"
- //////////////////////////////////////////////
- // DATAS
- //////////////////////////////////////////////
- //********************************************
- // Set
- //********************************************
- void CColor::Set(unsigned char red,
- unsigned char green,
- unsigned char blue,
- unsigned char alpha)
- {
- m_Red = red;
- m_Green = green;
- m_Blue = blue;
- m_Alpha = alpha;
- }
- //********************************************
- // Set
- //********************************************
- void CColor::Set(unsigned char red,
- unsigned char green,
- unsigned char blue)
- {
- m_Red = red;
- m_Green = green;
- m_Blue = blue;
- m_Alpha = 255;
- }
- //********************************************
- // Set
- //********************************************
- void CColor::Set(unsigned char grey)
- {
- m_Red = grey;
- m_Green = grey;
- m_Blue = grey;
- m_Alpha = 255;
- }
- //********************************************
- // Set
- //********************************************
- void CColor::Set(CColor &c)
- {
- m_Red = c.r();
- m_Green = c.g();
- m_Blue = c.b();
- m_Alpha = c.a();
- }
- // ** EOF **