home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula
/
nebula.bin
/
SourceCode
/
MiniExamples
/
Rotato
/
wraps.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-01-19
|
3KB
|
96 lines
/* wraps.c generated from wraps.psw
by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
*/
#include <dpsclient/dpsfriends.h>
#include <string.h>
#line 1 "wraps.psw"
#line 10 "wraps.c"
void PSW_transformToFit(int Rot, int angle, float w, float h)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjReal obj0;
DPSBinObjReal obj1;
DPSBinObjGeneric obj2;
DPSBinObjGeneric obj3;
DPSBinObjGeneric obj4;
DPSBinObjGeneric obj5;
DPSBinObjGeneric obj6;
DPSBinObjGeneric obj7;
DPSBinObjGeneric obj8;
DPSBinObjGeneric obj9;
DPSBinObjGeneric obj10;
DPSBinObjGeneric obj11;
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 12, 100,
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: w */
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_LITERAL|DPS_INT, 0, 0, 0},
{DPS_LITERAL|DPS_INT, 0, 0, 0},
{DPS_LITERAL|DPS_INT, 0, 0, 4},
{DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: Rot */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 135}, /* roll */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173}, /* translate */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 117}, /* pop */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 117}, /* pop */
{DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: angle */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 136}, /* rotate */
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[5].val.integerVal = Rot;
_dpsP[10].val.integerVal = angle;
_dpsP[0].val.realVal = w;
_dpsP[1].val.realVal = h;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,100);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 4 "wraps.psw"
#line 61 "wraps.c"
void PSW_flipit(float w, float h)
{
typedef struct {
unsigned char tokenType;
unsigned char topLevelCount;
unsigned short nBytes;
DPSBinObjGeneric obj0;
DPSBinObjReal obj1;
DPSBinObjGeneric obj2;
DPSBinObjGeneric obj3;
DPSBinObjGeneric obj4;
DPSBinObjGeneric obj5;
} _dpsQ;
static const _dpsQ _dpsStat = {
DPS_DEF_TOKENTYPE, 6, 52,
{DPS_LITERAL|DPS_INT, 0, 0, 0},
{DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: h */
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 173}, /* translate */
{DPS_LITERAL|DPS_INT, 0, 0, 1},
{DPS_LITERAL|DPS_INT, 0, 0, -1},
{DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 139}, /* scale */
}; /* _dpsQ */
_dpsQ _dpsF; /* local copy */
register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
char pad[3];
register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
_dpsF = _dpsStat; /* assign automatic variable */
_dpsP[1].val.realVal = h;
DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,52);
if (0) *pad = 0; /* quiets compiler warnings */
}
#line 9 "wraps.psw"