neuray API Programmer's Manual

neuraylib/version.h File Reference

Description

Major and minor version number and an optional qualifier. See Versioning of the neuray API

Code Example

neuraylib/version.h

‎/***************************************************************************************************
 * Copyright 2023 NVIDIA Corporation. All rights reserved.
 **************************************************************************************************/

#ifndef MI_NEURAYLIB_VERSION_H
#define MI_NEURAYLIB_VERSION_H

#include <mi/base/config.h>







#define MI_NEURAYLIB_API_VERSION  51

// The following three to four macros define the API version.
// The macros thereafter are defined in terms of the first four.

#define MI_NEURAYLIB_VERSION_MAJOR  4

#define MI_NEURAYLIB_VERSION_MINOR  1

#define MI_NEURAYLIB_VERSION_QUALIFIER  ""

// This macro is defined if #MI_NEURAYLIB_VERSION_QUALIFIER is the empty string \c "".
#define MI_NEURAYLIB_VERSION_QUALIFIER_EMPTY

#define MI_NEURAYLIB_VERSION_STRING  MI_BASE_STRINGIZE(MI_NEURAYLIB_VERSION_MAJOR) "." \
                                     MI_BASE_STRINGIZE(MI_NEURAYLIB_VERSION_MINOR)

#ifdef MI_NEURAYLIB_VERSION_QUALIFIER_EMPTY
#define MI_NEURAYLIB_VERSION_QUALIFIED_STRING  MI_NEURAYLIB_VERSION_STRING
#else
#define MI_NEURAYLIB_VERSION_QUALIFIED_STRING  MI_NEURAYLIB_VERSION_STRING "-" \
                                               MI_NEURAYLIB_VERSION_QUALIFIER
#endif // MI_NEURAYLIB_VERSION_QUALIFIER_EMPTY

#define MI_NEURAYLIB_PRODUCT_VERSION_STRING  "2023.0.1"

#define MI_NEURAYLIB_PLUGIN_TYPE "neuray API v43"

// Enables features that were deprecated with version 12.1.
// #define MI_NEURAYLIB_DEPRECATED_12_1

// Prefixes names of deprecated methods unless deprecated features are enabled.
#ifdef MI_NEURAYLIB_DEPRECATED_12_1
#define MI_NEURAYLIB_DEPRECATED_METHOD_12_1(X) X
#else
#define MI_NEURAYLIB_DEPRECATED_METHOD_12_1(X) deprecated_##X
#endif

// Enables features that were deprecated with version 14.0.
// #define MI_NEURAYLIB_DEPRECATED_14_0

// Prefixes names of deprecated methods unless deprecated features are enabled.
#ifdef MI_NEURAYLIB_DEPRECATED_14_0
#define MI_NEURAYLIB_DEPRECATED_METHOD_14_0(X) X
#else
#define MI_NEURAYLIB_DEPRECATED_METHOD_14_0(X) deprecated_##X
#endif

// Enables the deprecated default privacy level of zero in
// #mi::neuraylib::ITransaction::copy().
// #define MI_NEURAYLIB_DEPRECATED_ITRANSACTION_COPY_DEFAULT_PRIVACY_LEVEL_ZERO

#ifdef MI_NEURAYLIB_DEPRECATED_LEGACY_MDL_API
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_LEGACY_MDL_API has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_LEGACY_MDL_API has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_ITRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro " \
    "MI_NEURAYLIB_DEPRECATED_ITRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO " \
    "has been removed")
#else
#warning Support for macro \
    MI_NEURAYLIB_DEPRECATED_ITRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO \
    has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_IDICE_TRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro " \
    "MI_NEURAYLIB_DEPRECATED_IDICE_TRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO " \
    "has been removed")
#else
#warning Support for macro \
    MI_NEURAYLIB_DEPRECATED_IDICE_TRANSACTION_STORE_DEFAULT_PRIVACY_LEVEL_ZERO \
    has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro " \
    "MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_NO_EXPLICIT_TRANSACTION
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro " \
    "MI_NEURAYLIB_DEPRECATED_NO_EXPLICIT_TRANSACTION has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_NO_EXPLICIT_TRANSACTION has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_7_1
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_7_1 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_7_1 has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_7_2
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_7_2 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_7_2 has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_7_3
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_7_3 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_7_3 has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_8_0
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_8_0 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_8_0 has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_8_1
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_8_1 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_8_1 has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_9_1
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_9_1 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_9_1 has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_11_1
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_11_1 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_11_1 has been removed
#endif
#endif

#ifdef MI_NEURAYLIB_DEPRECATED_13_0
#ifdef MI_PLATFORM_WINDOWS
#pragma message("Support for macro MI_NEURAYLIB_DEPRECATED_13_0 has been removed")
#else
#warning Support for macro MI_NEURAYLIB_DEPRECATED_13_0 has been removed
#endif
#endif
 // end group mi_neuray_version

#endif // MI_NEURAYLIB_VERSION_H

Defines

#define  51
ABI version number. More...
#define  "neuray API v43"
Type of plugins for the Neuray API. More...
#define  "2023.0.1"
product version number in a string representation, such as "2.0". More...
#define  4
Neuray API major version number. More...
#define  1
Neuray API minor version number. More...
#define 
Neuray API major and minor version number and qualifier in a string representation, such as "2.0" or "2.0-beta2". More...
#define  ""
Neuray API version qualifier. More...
#define 
Neuray API major and minor version number without qualifier in a string representation, such as "2.0". More...