home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NEXT Generation 27
/
NEXT27.iso
/
pc
/
demos
/
emperor
/
dx3.exe
/
SDK
/
SAMPLES
/
IKLOWNS
/
CGGRAPH.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1996-08-28
|
2KB
|
59 lines
/*===========================================================================*\
|
| File: cggraph.cpp
|
| Description:
|
|-----------------------------------------------------------------------------
|
| Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved.
|
| Written by Moss Bay Engineering, Inc. under contract to Microsoft Corporation
|
\*===========================================================================*/
/**************************************************************************
(C) Copyright 1995-1996 Microsoft Corp. All rights reserved.
You have a royalty-free right to use, modify, reproduce and
distribute the Sample Files (and/or any modified version) in
any way you find useful, provided that you agree that
Microsoft has no warranty obligations or liability for any
Sample Application Files which are modified.
we do not recomend you base your game on IKlowns, start with one of
the other simpler sample apps in the GDK
**************************************************************************/
#include "cggraph.h"
/*---------------------------------------------------------------------------*\
|
| CGameGraphic()
|
| DESCRIPTION:
|
|
|
\*---------------------------------------------------------------------------*/
CGameGraphic::CGameGraphic(
int curz
) : mIsValid(FALSE),
mXParallax(1),
mYParallax(1),
mpNext( NULL )
{
mRect.top = mRect.bottom = mRect.left = mRect.right = 0;
// set parallax factor as zposition / 16
mXParallax = curz >> 4;
mYParallax = curz >> 4;
}
CGameGraphic::~CGameGraphic()
{
}