home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex099.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
922b
|
39 lines
// Example: 099 from Library Reference
#include "..\3D-Ware\dddware.h"
struct ObjectStructure my_obj;
short main(void)
{
my_obj.Xpos=0;
my_obj.Ypos=0;
my_obj.Zpos=1000;
my_obj.Xangle=0;
my_obj.Yangle=0;
my_obj.Zangle=0;
my_obj.ShapeFlags=0;
my_obj.DrawRoutine = DRW_MOBILE ;
dddInitAll();
my_obj.ShapeHandle = dddShapeLoad("example.3d");
dddSetViewPos(0,0,0);
dddSetViewAngles(0,0,0);
while (!dddkeycode)
{
my_obj.Xangle+=0x100;
my_obj.Yangle+=0x120;
my_obj.Zangle+=0x40;
dddClearObjects();
dddHoriFade(0,0);
dddQInsertObject(&my_obj);
dddDrawObjects();
dddScreenSwap(); // Flip the real screen and the dummy screen.
}
dddRestoreAll();
return 0; // Bye.
}