Delegate GLFWdeallocatefun
The function pointer type for memory deallocation callbacks.
This is the function pointer type for memory deallocation callbacks. A memory deallocation callback function has the following signature: @code void function_name(void* block, void* user) @endcode
This function may deallocate the specified memory block.This memory block will have been allocated with the same allocator.
This function must support being called during @ref glfwInit but before the library is flagged as initialized, as well as during @ref glfwTerminate after the library is no longer flagged as initialized.
The block address will never be NULL
. Deallocations of NULL
are filtered out
before reaching the custom allocator.
If this function returns NULL
, GLFW will emit @ref GLFW_OUT_OF_MEMORY.
This function must not call any GLFW function.
Namespace: OpenTK.Windowing.GraphicsLibraryFramework
Assembly: OpenTK.Windowing.GraphicsLibraryFramework.dll
Syntax
public delegate void GLFWdeallocatefun(void* block, void* user)
Parameters
Type | Name | Description |
---|---|---|
void* | block | The address of the memory block to deallocate. |
void* | user | The user-defined pointer from the allocator. |
Remarks
The specified memory block will not be accessed by GLFW after this function is called.
This function should not call any GLFW function.
This function must support being called from any thread that calls GLFW functions.