summaryrefslogtreecommitdiff
path: root/src/OpenGl/OpenGl_togl_light.cxx
blob: 130caa87490ded87cd1b185aa2363332d4dd9cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include <OpenGl_tgl_all.hxx>
#include <InterfaceGraphic_Graphic3d.hxx>
#include <InterfaceGraphic_Visual3d.hxx>

long EXPORT
call_togl_light
(
 CALL_DEF_LIGHT * alight,
 long update
 )
{
  static long NbLights = 1;

  /* rest of the code is redundant */
  return update ? alight->LightId : NbLights++;
}