home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Homebrewer's Handbook
/
vr.iso
/
avril
/
example1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-19
|
564b
|
29 lines
/* EXAMPLE1 -- a cube */
/* Written by Bernie Roehl, April 1994 */
#include "avril.h"
void main()
{
vrl_Object *cube;
vrl_Light *light;
vrl_Camera *camera;
vrl_SystemStartup();
cube = vrl_ObjectCreate(vrl_PrimitiveBox(100, 100, 100, NULL));
vrl_ObjectRotY(cube, float2angle(45));
light = vrl_LightCreate();
vrl_LightRotY(light, float2angle(45));
vrl_LightRotX(light, float2angle(45));
camera = vrl_CameraCreate();
vrl_CameraRotX(camera, float2angle(45));
vrl_CameraMove(camera, 0, 500, -500);
vrl_SystemRun();
}