VAPOR3 3.9.4
OSPRay.h
Go to the documentation of this file.
1#pragma once
2#ifdef BUILD_OSPRAY
3 #include <ospray/ospray_util.h>
4#endif
5#include <string>
6#include <glm/glm.hpp>
7#include <vapor/common.h>
8
11
12namespace VOSP {
13RENDER_API int Initialize(int *argc, char **argv);
15RENDER_API std::string Version();
16RENDER_API bool IsVersionAtLeast(int major, int minor);
17
18#ifdef BUILD_OSPRAY
19OSPData NewCopiedData(const void *data, OSPDataType type, uint64_t numItems1, uint64_t numItems2 = 1, uint64_t numItems3 = 1);
20// void LoadTransferFunction(VAPoR::MapperFunction *vtf, OSPTransferFunction otf);
21OSPTexture OSPDepthFromGLPerspective(float fovy, float aspect, float zNear, float zFar, glm::vec3 cameraDir, glm::vec3 cameraUp, const float *glDepthBuffer, int width, int height);
22
23namespace Test {
24OSPGeometricModel LoadTriangle(glm::vec3 scale = glm::vec3(1.f), const std::string &rendererType = "scivis");
25}
26#endif
27} // namespace VOSP
#define RENDER_API
Definition: common.h:78
OSPRay integration interface and utility functions.
Definition: OSPRay.h:12
RENDER_API int Initialize(int *argc, char **argv)
RENDER_API std::string Version()
RENDER_API int Shutdown()
RENDER_API bool IsVersionAtLeast(int major, int minor)