This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
Containers
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
CIGI Client Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

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 AtomicCAS( volatile int * ptr, int old_value, int new_value )

Unigine atomic compare and swap.

Arguments

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

Return value

Returns 1 if the variable value was successfully swaped; otherwise, 0 is returned.

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: 2018-12-27
Build: ()