O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting Up the Graphic Elements and Camera

As done for all our programs, we’ll need to set the resolution and the buffer. Even though we set the resolution for earlier in the function, we need to set it for the rest of the program. To do this, we’ll enter the following code:

EndIf
Wend
End Function
;Setting the graphics for the program
      Graphics3D 1024,768
      SetBuffer BackBuffer()
; Creating the camera
      camera=CreateCamera()
; Creating a light
      light=CreateLight()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required