mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-19 01:27:18 -04:00
Update GLFWImage.java
wrap deprecated functions
This commit is contained in:
parent
c32b38b521
commit
f9616655ed
@ -255,7 +255,7 @@ public class GLFWImage extends Struct implements NativeResource {
|
|||||||
* @param stack the stack from which to allocate
|
* @param stack the stack from which to allocate
|
||||||
*/
|
*/
|
||||||
public static GLFWImage mallocStack(MemoryStack stack) {
|
public static GLFWImage mallocStack(MemoryStack stack) {
|
||||||
return wrap(GLFWImage.class, stack.nmalloc(ALIGNOF, SIZEOF));
|
return malloc(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -264,7 +264,7 @@ public class GLFWImage extends Struct implements NativeResource {
|
|||||||
* @param stack the stack from which to allocate
|
* @param stack the stack from which to allocate
|
||||||
*/
|
*/
|
||||||
public static GLFWImage callocStack(MemoryStack stack) {
|
public static GLFWImage callocStack(MemoryStack stack) {
|
||||||
return wrap(GLFWImage.class, stack.ncalloc(ALIGNOF, 1, SIZEOF));
|
return calloc(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -292,7 +292,7 @@ public class GLFWImage extends Struct implements NativeResource {
|
|||||||
* @param capacity the buffer capacity
|
* @param capacity the buffer capacity
|
||||||
*/
|
*/
|
||||||
public static GLFWImage.Buffer mallocStack(int capacity, MemoryStack stack) {
|
public static GLFWImage.Buffer mallocStack(int capacity, MemoryStack stack) {
|
||||||
return wrap(Buffer.class, stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity);
|
return malloc(capacity, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -302,7 +302,7 @@ public class GLFWImage extends Struct implements NativeResource {
|
|||||||
* @param capacity the buffer capacity
|
* @param capacity the buffer capacity
|
||||||
*/
|
*/
|
||||||
public static GLFWImage.Buffer callocStack(int capacity, MemoryStack stack) {
|
public static GLFWImage.Buffer callocStack(int capacity, MemoryStack stack) {
|
||||||
return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
|
return calloc(capacity, stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------
|
// -----------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user