raygui-widget
Public Attributes | List of all members
GLFWallocator Struct Reference

Custom heap memory allocator. More...

#include <glfw3.h>

Public Attributes

GLFWallocatefun allocate
 
GLFWreallocatefun reallocate
 
GLFWdeallocatefun deallocate
 
void * user
 

Detailed Description

Custom heap memory allocator.

This describes a custom heap memory allocator for GLFW. To set an allocator, pass it to glfwInitAllocator before initializing the library.

See also
init_allocator
glfwInitAllocator
Since
Added in version 3.4.

Member Data Documentation

◆ allocate

GLFWallocatefun GLFWallocator::allocate

The memory allocation function. See GLFWallocatefun for details about allocation function.

◆ deallocate

GLFWdeallocatefun GLFWallocator::deallocate

The memory deallocation function. See GLFWdeallocatefun for details about deallocation function.

◆ reallocate

GLFWreallocatefun GLFWallocator::reallocate

The memory reallocation function. See GLFWreallocatefun for details about reallocation function.

◆ user

void* GLFWallocator::user

The user pointer for this custom allocator. This value will be passed to the allocator functions.


The documentation for this struct was generated from the following file: