RavEngine
Loading...
Searching...
No Matches
OmniPvdDefines.h
1// Redistribution and use in source and binary forms, with or without
2// modification, are permitted provided that the following conditions
3// are met:
4// * Redistributions of source code must retain the above copyright
5// notice, this list of conditions and the following disclaimer.
6// * Redistributions in binary form must reproduce the above copyright
7// notice, this list of conditions and the following disclaimer in the
8// documentation and/or other materials provided with the distribution.
9// * Neither the name of NVIDIA CORPORATION nor the names of its
10// contributors may be used to endorse or promote products derived
11// from this software without specific prior written permission.
12//
13// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24//
25// Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
26// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
27// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
28
29#ifndef OMNI_PVD_DEFINES_H
30#define OMNI_PVD_DEFINES_H
31
32#define OMNI_PVD_VERSION_MAJOR 0
33#define OMNI_PVD_VERSION_MINOR 3
34#define OMNI_PVD_VERSION_PATCH 0
35
37// Versions so far : (major, minor, patch), top one is newest
38//
39// [0, 3, 0]
40// writes/read out the base class handle in the class registration call
41// backwards compatible with [0, 2, 0] and [0, 1, 42]
42// [0, 2, 0]
43// intermediate version was never official, no real change, but there are many files with this version
44// [0, 1, 42]
45// no proper base class written/read in the class registration call
46//
48
49#include <stdint.h>
50
51#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
52#define OMNI_PVD_WIN
53#define OMNI_PVD_CALL __cdecl
54#define OMNI_PVD_EXPORT extern "C" __declspec(dllexport)
55#else
56#ifdef __cdecl__
57 #define OMNI_PVD_CALL __attribute__((__cdecl__))
58#else
59 #define OMNI_PVD_CALL
60#endif
61#if __GNUC__ >= 4
62 #define OMNI_PVD_EXPORT extern "C" __attribute__((visibility("default")))
63 #else
64 #define OMNI_PVD_EXPORT extern "C"
65#endif
66#endif
67
68typedef uint64_t OmniPvdObjectHandle;
69typedef uint64_t OmniPvdContextHandle;
70typedef uint32_t OmniPvdClassHandle;
71typedef uint32_t OmniPvdAttributeHandle;
72typedef uint16_t OmniPvdAttributeDataType;
73typedef uint32_t OmniPvdVersionType;
74
75typedef void (OMNI_PVD_CALL *OmniPvdLogFunction)(char *logLine);
76
78{
79 enum Enum
80 {
81 eINT8,
82 eINT16,
83 eINT32,
84 eINT64,
85 eUINT8,
86 eUINT16,
87 eUINT32,
88 eUINT64,
89 eFLOAT32,
90 eFLOAT64,
91 eSTRING,
92 eOBJECT_HANDLE,
93 eENUM_VALUE,
94 eFLAGS_WORD
95 };
96};
97
98#endif
uint64 uint64_t
Definition fwd.hpp:145
uint32 uint32_t
Definition fwd.hpp:131
uint16 uint16_t
Definition fwd.hpp:117
Definition OmniPvdDefines.h:78