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
nstate.h
Package: win2ksrc.rar [view]
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 2k
Category:
Windows Develop
Development Platform:
Visual C++
- /******************************Module*Header*******************************
- * Module Name: nstate.h
- *
- * NORMAL_STATE
- *
- * Copyright (c) 1995 Microsoft Corporation
- *
- **************************************************************************/
- #ifndef __nstate_h__
- #define __nstate_h__
- #include "sscommon.h"
- #include "objects.h"
- #include "state.h"
- #define NORMAL_PIPE_COUNT 5
- #define NORMAL_TEX_PIPE_COUNT 3
- #define NUM_JOINT_STYLES 3
- // styles for pipe joints
- enum {
- ELBOWS = 0,
- BALLS,
- EITHER
- };
- // joint types
- enum {
- ELBOW_JOINT = 0,
- BALL_JOINT
- };
- // shchemes for choosing directions
- enum {
- NORMAL_SCHEME_CHOOSE_DIR_RANDOM,
- NORMAL_SCHEME_CHOOSE_DIR_TURN,
- NORMAL_SCHEME_CHOOSE_DIR_STRAIGHT
- };
- // this used for traditional pipe drawing
- class PIPE_OBJECT;
- class ELBOW_OBJECT;
- class SPHERE_OBJECT;
- class BALLJOINT_OBJECT;
- class STATE;
- #if 0
- struct _OBJECT_SET {
- public:
- PIPE_OBJECT *shortPipe;
- PIPE_OBJECT *longPipe;
- ELBOW_OBJECT *elbows[4];
- SPHERE_OBJECT *ballCap;
- SPHERE_OBJECT *bigBall;
- BALLJOINT_OBJECT *ballJoints[4];
- } OBJECT_SET;
- #endif
- class NORMAL_STATE {
- public:
- int jointStyle;
- int bCycleJointStyles;
- PIPE_OBJECT *shortPipe;
- PIPE_OBJECT *longPipe;
- ELBOW_OBJECT *elbows[4];
- SPHERE_OBJECT *ballCap;
- SPHERE_OBJECT *bigBall;
- BALLJOINT_OBJECT *ballJoints[4];
- NORMAL_STATE( STATE *pState );
- ~NORMAL_STATE();
- void Reset();
- // int GetMaxPipesPerFrame();
- void BuildObjects( float radius, float divSize, int nSlices,
- BOOL bTexture, IPOINT2D *pTexRep );
- int ChooseJointType();
- };
- #endif // __nstate_h__