0

I am new to Open GL / Open GL ES.

I am a Android developer and exploring Open GL myself. Is really very difficult to understand but day by day I am making progress merely because of you peoples :)

Now lets come to my problem.

I downloaded 2 sample, compile and run it...it working. But when I looked in a code I found out of one gluLookAt() is not being used.

My question is, 1) is it optional ? 2) And if its then how we setting the ViewPort(Camera) ?

Please let me know if need more description on it.

Thanks Amit

4

1 回答 1

2

gluLookAt()一直是完全可选的。它只是一个方便的功能,它为平移(用于相机位置)和旋转(用于相机方向)设置变换矩阵。另请注意,这gluLookAt()在现代 OpenGL 中也已完全弃用且不可用。

于 2014-03-23T18:44:36.253 回答