0% found this document useful (0 votes)
52 views9 pages

Cube Camera

The document appears to be source code for a computer graphics program that renders a color cube camera. It includes functions for drawing polygons, setting colors, displaying objects and handling user input like keyboard presses. The program uses OpenGL to render 3D graphics on the screen.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views9 pages

Cube Camera

The document appears to be source code for a computer graphics program that renders a color cube camera. It includes functions for drawing polygons, setting colors, displaying objects and handling user input like keyboard presses. The program uses OpenGL to render 3D graphics on the screen.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

CoPy1 Ame kanude

Aran cobe A allo se fo mo Le

Ca mera

intlode ( s4dub:h>
tincude < nLl ql»4 h>

tloat ver ics LJls J 3 -, o, -{.o, -o3,} tO-l01,

i o -.orl.o} oi L+e7lo i. Or lo,1.o} ,


C7 out olo rs
LJ3 :

1oto o o,0Do.o 10, 00 o,


ioo r0.1.0o},3 o
0o o, 07, 3).o00,0f
void
void
poy gon Cint a int b
intcint d)
9Begi al Pl Ynon);
aColor39vC tolors laJ);
al Vevek 3}v
9
veyices laJ);
gLolov}v Cco lols Lb))
glvedev 3) veviCes {L] ):
color 3}vC Colovs IG),
glVerfc x

q Co lo 3C colov sld]);
glvu terfr ver hiesl d]);
9Fndt );

3
Voi d colorco bt ()

olyon l ocs 211)D


polygon 23 76)

folgonoc4.)13)
polyg on r 26 S);

Poygon (4s617)
Polygon Co, '!y 4
3
Stuhc l lof thetalI }o.o, 0-0, o.o

Stuhc CaLint atis 2)


Stuhe aL dou ble vienes [7 20,oS.o3

Vsid duspluy (oid)


9eurCa LGo LoR F F ER Br Col DEITH. BFFK,BT|
Load I den hifyC)
ulock A4 ( vicweloJ,vicwer SviCner l2J, 0,
)
g loule )( 4he ialo), I-o,so/00
Jlotae ( he to 7, .orloro)s

cOlo bt CJ;
gFus C);
qL4SwapBoHers)
Void
mous Cint bth in} sfa }e. nt x
iny)
iCbtn GLv1 -EETT- 30 T70 4 sfa tc = 2
G LUTPu
t
htn nLUT - MDDLE -

Fu7fop ! stafc : =
lv7- J0N

hulo 2.0;
hely lais) 30 -o) theta lais? .0
z 3l0
dapley

Void ky s o nsigne d hur key (int s inty

icwer lo)-2 0 .0/

CPy= = X') vicner (oJ + 0o


-

viener l - 0
Cy e y')
Cy y') icwe [1] t r°

C y s ' ) viewerL2- 0
= lo
C e y ' 2 ' ) vitwerL2J+

display C)
id my Leshape Cint w, in h)

gViorf o. o, W,h );
qlMai xMade ( u - PRoJETON)

gl Loud Tden tty )


(y (we =h)
Fwshom 2-0, 2 s-).0 *(Ctloaf) h//hL2
4o4) ,
01200)
2.o (GLglouf ) h Caploc t)
2

else
-2-0, 2 -o(- 2 *CLL touf) I (GL?luat) h,
n
9 Foston
2. (CG ?tod) Ct9loof) h , 2 0 2o.o)
9 Mam M.dd (bL MoDEL V (E W)

vod
Vod mun Cin
ayc char e* aryv)

lof I nit (4 avYC,


argv)
q fl ni t Disploy Mode
(caLUT. Doo BF |aLURG8)
GLUr.
DE PTH
gfTit Windon Se2e ( Soor
5oo )
alut Crat window " (olor csbe Vewe
Viewer");
");
g Reshapt Forc (my Resho pe);
gwt pioplay Fore ( dia play);
otMonc Fonc mouse),
atbuyboard furcCeys)
Frable CaL- DE PTHTE ST
);
ldMoin loo pC);
3
Pubantu [Running] -Oracle VM VirtualBox
File Machine View Input Devices Help
Activities Jun 26 16:11
Unknown
amogh@amogh-VirtualBox:

amogh@anogh -VirtualBox: -$ gedit cubecam.c


amogh@amogh-VirtualBox:-$ gce cubecam.c -o firstopenGLApp -lglut -LGLU -LGL -ln
amogh@amogh-VirtualBox : $ ./firstOpenGLApp
Colorcube Camera

Type here to search A Au Ae


u b a n t u [Running - Oracle VM VirtualBox

File Machine View Input Devices Help


Activities Unknown Jun 26 16:11

amogh@amogh-Virtua lB

amogh@anogh -VirtualBox: -$ gedit cubecam.c


amogh@amogh-VirtualBox:-$ gce cubecam.c -o firstopenGLApp -lglut -LGLU -LGL -ln
amogh@amogh-VirtualBox : $ ./first0penGLApp
Colorcube Camera

P Type here to search Au Ps


Pubantu [Running]-Oracle VM VirtualBox
File Machine View Input Devices Help
ctivities Unknown Jun 26 16:12

amogh@amogh-Virtuall

amogh@amogh-VirtualBox:-$ gedit cubecam.c


anogh@amogh-VirtualBox:-$ gcc cubecam.c -o firstOpenGLApp
amogh@amogh-VirtualBox:-$ ./first0penGLApp
-1glut -LGLU -1GL -Ln

Colorcube Camera -

T y p e here to search A Au
ubantu [Runningl Oracle VM VirtualBox
File Machine View Input Devices Help
Activities Unknown Jun 26 16:13

amogh@amogh-VirtualB:
amogh@amogh-VirtualBox: $ gedit cubecam.c
anogh@amogh-VirtualBox:-$ gcc cubecan.c -o firstOpenGLApp -lglut LGLU -LGL -n
amogh@amogh-VirtualLBox:-$ ./first0penGlApp

Colorcube Camera

P Type here to search A Au P

You might also like