This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine Namespace Items

CallbackBase * MakeCallback ( Ret(*)() func ) #

Makes a function callback. The function can receive up to 4 arguments.

Arguments

  • Ret(*)() func - Pointer to the function.

Return value

Pointer to the callback.

CallbackBase * MakeCallback ( Class * func ) #

Makes a class member function callback. The function can receive up to 4 arguments.

Arguments

  • Class * func - Pointer to the class member function.

Return value

Pointer to the callback.

int AtomicAdd ( volatile int * ptr, int value ) #

Unigine atomic add (32-bit).

Arguments

  • volatile int * ptr - Pointer to the variable.
  • int value - Value to be added.

Return value

Previous value (just before adding).

long long AtomicAdd ( volatile long long * ptr, long long value ) #

Unigine atomic add (64-bit).

Arguments

  • volatile long long * ptr - Pointer to the variable.
  • long long value - Value to be added.

Return value

Previous value (just before adding).

bool AtomicCAS ( volatile int * ptr, int old_value, int new_value ) #

Unigine atomic compare and swap (32-bit).

Arguments

  • volatile int * ptr - Pointer to the variable.
  • int old_value - The old pointer value.
  • int new_value - The new pointer value.

Return value

true if the variable value was successfully swapped; otherwise, false.

bool AtomicCAS ( volatile long long * ptr, long long old_value, long long new_value ) #

Unigine atomic compare and swap (64-bit).

Arguments

  • volatile long long * ptr - Pointer to the variable.
  • long long old_value - The old pointer value.
  • long long new_value - The new pointer value.

Return value

true if the variable value was successfully swapped; otherwise, false.

bool AtomicCAS ( volatile long long * ptr, void * old_value, void * new_value ) #

Unigine atomic compare and swap (pointer).

Arguments

  • volatile long long * ptr - Pointer to the variable.
  • void * old_value - The old pointer value.
  • void * new_value - The new pointer value.

Return value

true if the variable value was successfully swapped; otherwise, false.

int AtomicSet ( volatile int * ptr, int value ) #

Unigine atomic set (32-bit).

Arguments

  • volatile int * ptr - Pointer to the variable.
  • int value - Value to be set.

Return value

Previous value (just before setting).

long long AtomicSet ( volatile int * ptr, long long value ) #

Unigine atomic set (64-bit).

Arguments

  • volatile int * ptr - Pointer to the variable.
  • long long value - Value to be set.

Return value

Previous value (just before setting).

int AtomicGet ( volatile int * ptr ) #

Unigine atomic read (32-bit). Simply accessing the variable directly is actually unsafe!

Arguments

  • volatile int * ptr - Pointer to the variable.

Return value

Variable value.

long long AtomicGet ( volatile int * ptr ) #

Unigine atomic read (64-bit). Simply accessing the variable directly is actually unsafe!

Arguments

  • volatile int * ptr - Pointer to the variable.

Return value

Variable value.

void SpinLock ( volatile int * ptr, int old_value, int new_value ) #

Unigine SpinLock.

Arguments

  • volatile int * ptr - Pointer to the variable.
  • int old_value - The old pointer value.
  • int new_value - The new pointer value.

void WaitLock ( volatile int * ptr, int value ) #

Unigine WaitLock.

Arguments

  • volatile int * ptr - Pointer to the variable.
  • int value - The pointer value.

void quickSort ( Type * array, int size ) #

Sorts the input array with default compare algorithm.

Arguments

  • Type * array - The array pointer.
  • int size - The array size.

void quickSort ( Type * array, int size, Compare compare ) #

Sorts the input array with specified compare functor.

Arguments

  • Type * array - The array pointer.
  • int size - The array size.
  • Compare compare - Compare functor.

void quickSort ( Type * array, int size, int(*)(A0, A1) func ) #

Sorts the input array with specified compare function.

Arguments

  • Type * array - The array pointer.
  • int size - The array size.
  • int(*)(A0, A1) func - Compare function.

void quickDoubleSort ( Type * array, Data * data, int size ) #

Sorts the input array with default compare algorithm.

Arguments

  • Type * array - The array pointer.
  • Data * data - The data pointer.
  • int size - The array size.

void quickDoubleSort ( Type * array, Data * data, int size, Compare compare ) #

Sorts the input array with specified compare functor.

Arguments

  • Type * array - The array pointer.
  • Data * data - The data pointer.
  • int size - The array size.
  • Compare compare - Compare functor.

void quickDoubleSort ( Type * array, Data * data, int size, int(*)(A0, A1) func ) #

Sorts the input array with specified compare function.

Arguments

  • Type * array - The array pointer.
  • Data * data - The data pointer.
  • int size - The array size.
  • int(*)(A0, A1) func - Compare function.
Last update: 10.04.2020
Build: ()