-
-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also integrated tinyexr with the LWJGL memory allocator.
- Loading branch information
Showing
8 changed files
with
655 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
modules/lwjgl/tinyexr/src/generated/c/org_lwjgl_util_tinyexr_LibTinyEXR.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
#include "common_tools.h" | ||
#define LWJGL_MALLOC_LIB org_lwjgl_util_tinyexr_LibTinyEXR | ||
#include "lwjgl_malloc.h" |
46 changes: 46 additions & 0 deletions
46
modules/lwjgl/tinyexr/src/generated/java/org/lwjgl/util/tinyexr/LibTinyEXR.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright LWJGL. All rights reserved. | ||
* License terms: https://www.lwjgl.org/license | ||
* MACHINE GENERATED FILE, DO NOT EDIT | ||
*/ | ||
package org.lwjgl.util.tinyexr; | ||
|
||
import org.lwjgl.system.*; | ||
|
||
import static org.lwjgl.system.MemoryUtil.*; | ||
|
||
/** Initializes the tinyexr shared library. */ | ||
final class LibTinyEXR { | ||
|
||
static { | ||
String libName = Platform.mapLibraryNameBundled("lwjgl_tinyexr"); | ||
Library.loadSystem(System::load, System::loadLibrary, LibTinyEXR.class, "org.lwjgl.tinyexr", libName); | ||
|
||
MemoryAllocator allocator = getAllocator(Configuration.DEBUG_MEMORY_ALLOCATOR_INTERNAL.get(true)); | ||
setupMalloc( | ||
allocator.getMalloc(), | ||
allocator.getCalloc(), | ||
allocator.getRealloc(), | ||
allocator.getFree(), | ||
allocator.getAlignedAlloc(), | ||
allocator.getAlignedFree() | ||
); | ||
} | ||
|
||
private LibTinyEXR() { | ||
} | ||
|
||
static void initialize() { | ||
// intentionally empty to trigger static initializer | ||
} | ||
|
||
private static native void setupMalloc( | ||
long malloc, | ||
long calloc, | ||
long realloc, | ||
long free, | ||
long aligned_alloc, | ||
long aligned_free | ||
); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.