mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06:00
Update GLFWImage.java
wrap deprecated functions
This commit is contained in:
parent
c32b38b521
commit
f9616655ed
1 changed files with 5 additions and 5 deletions
|
|
@ -255,7 +255,7 @@ public class GLFWImage extends Struct implements NativeResource {
|
|||
* @param stack the stack from which to allocate
|
||||
*/
|
||||
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
|
||||
*/
|
||||
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
|
||||
*/
|
||||
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
|
||||
*/
|
||||
public static GLFWImage.Buffer callocStack(int capacity, MemoryStack stack) {
|
||||
return wrap(Buffer.class, stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity);
|
||||
return calloc(capacity, stack);
|
||||
}
|
||||
|
||||
// -----------------------------------
|
||||
|
|
@ -401,4 +401,4 @@ public class GLFWImage extends Struct implements NativeResource {
|
|||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue