File: registration.cpp

package info (click to toggle)
ospray 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,048 kB
  • sloc: cpp: 80,569; ansic: 951; sh: 805; makefile: 170; python: 69
file content (34 lines) | stat: -rw-r--r-- 810 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

#include "Boxes.h"
#include "Curves.h"
#ifdef OSPRAY_ENABLE_VOLUMES
#include "Isosurfaces.h"
#endif
#include "Mesh.h"
#include "Planes.h"
#include "Spheres.h"
#ifndef OSPRAY_TARGET_SYCL
#include "Subdivision.h"
#endif

namespace ospray {

void registerAllGeometries()
{
  Geometry::registerType<Boxes>("box");
  Geometry::registerType<Curves>("curve");
#ifdef OSPRAY_ENABLE_VOLUMES
  Geometry::registerType<Isosurfaces>("isosurface");
#endif
  Geometry::registerType<Mesh>("mesh");
  Geometry::registerType<Spheres>("sphere");
#ifndef OSPRAY_TARGET_SYCL
  // Subdivision surfaces not supported on the GPU
  Geometry::registerType<Subdivision>("subdivision");
#endif
  Geometry::registerType<Planes>("plane");
}

} // namespace ospray