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
Light.cpp
Package: Jhy3D.rar [view]
Upload User: eehhbb
Upload Date: 2022-08-03
Package Size: 2550k
Code Size: 1k
Category:
OpenGL program
Development Platform:
Visual C++
- // Light.cpp: implementation of the CLight class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "jhy3d.h"
- #include "Light.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CLight::CLight()
- {
- m_vSpecular[0] = 0.0;
- m_vSpecular[1] = 0.0;
- m_vSpecular[2] = 0.0;
- m_vSpecular[3] = 1.0;
- m_vDiffuse[0] = 1.0;
- m_vDiffuse[1] = 1.0;
- m_vDiffuse[2] = 1.0;
- m_vDiffuse[3] = 1.0;
- m_vAmbient[0] = 0.0;
- m_vAmbient[1] = 0.0;
- m_vAmbient[2] = 0.0;
- m_vAmbient[3] = 1.0;
- m_vPosition[0] = 1.0;
- m_vPosition[1] = 0.0;
- m_vPosition[2] = 0.0;
- m_vPosition[3] = 0.0;
- }
- CLight::~CLight()
- {
- }