File: cameraLight.pro

package info (click to toggle)
libqglviewer 2.8.0%2Bdfsg1-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,092 kB
  • sloc: cpp: 25,884; makefile: 24; sh: 14
file content (15 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# This example shows how to position a GL_LIGHT on the camera.

# A spot light position and direction are set so that they always match the
# camera's current setup. 

# This is done using the <code>camera->position()</code> and <code>camera->viewDirection()</code>
# methods which return values expressed in the world coordinates system.

TEMPLATE = app
TARGET   = cameraLight

HEADERS  = cameraLight.h
SOURCES  = cameraLight.cpp main.cpp

include( ../examples.pri )