|
5 | 5 | */
|
6 | 6 | package org.lwjgl.assimp;
|
7 | 7 |
|
8 |
| -import javax.annotation.*; |
| 8 | +import org.jspecify.annotations.*; |
9 | 9 |
|
10 | 10 | import java.nio.*;
|
11 | 11 |
|
@@ -118,23 +118,20 @@ public AIAnimation(ByteBuffer container) {
|
118 | 118 | @NativeType("unsigned int")
|
119 | 119 | public int mNumChannels() { return nmNumChannels(address()); }
|
120 | 120 | /** The node animation channels. Each channel affects a single node. The array is {@code mNumChannels} in size. */
|
121 |
| - @Nullable |
122 | 121 | @NativeType("struct aiNodeAnim **")
|
123 |
| - public PointerBuffer mChannels() { return nmChannels(address()); } |
| 122 | + public @Nullable PointerBuffer mChannels() { return nmChannels(address()); } |
124 | 123 | /** The number of mesh animation channels. Each channel affects a single mesh and defines vertex-based animation. */
|
125 | 124 | @NativeType("unsigned int")
|
126 | 125 | public int mNumMeshChannels() { return nmNumMeshChannels(address()); }
|
127 | 126 | /** The mesh animation channels. Each channel affects a single mesh. The array is {@code mNumMeshChannels} in size. */
|
128 |
| - @Nullable |
129 | 127 | @NativeType("struct aiMeshAnim **")
|
130 |
| - public PointerBuffer mMeshChannels() { return nmMeshChannels(address()); } |
| 128 | + public @Nullable PointerBuffer mMeshChannels() { return nmMeshChannels(address()); } |
131 | 129 | /** the number of mesh animation channels. Each channel affects a single mesh and defines morphing animation. */
|
132 | 130 | @NativeType("unsigned int")
|
133 | 131 | public int mNumMorphMeshChannels() { return nmNumMorphMeshChannels(address()); }
|
134 | 132 | /** the morph mesh animation channels. Each channel affects a single mesh. The array is {@code mNumMorphMeshChannels} in size. */
|
135 |
| - @Nullable |
136 | 133 | @NativeType("struct aiMeshMorphAnim **")
|
137 |
| - public PointerBuffer mMorphMeshChannels() { return nmMorphMeshChannels(address()); } |
| 134 | + public @Nullable PointerBuffer mMorphMeshChannels() { return nmMorphMeshChannels(address()); } |
138 | 135 |
|
139 | 136 | /** Copies the specified {@link AIString} to the {@link #mName} field. */
|
140 | 137 | public AIAnimation mName(@NativeType("struct aiString") AIString value) { nmName(address(), value); return this; }
|
@@ -206,8 +203,7 @@ public static AIAnimation create(long address) {
|
206 | 203 | }
|
207 | 204 |
|
208 | 205 | /** Like {@link #create(long) create}, but returns {@code null} if {@code address} is {@code NULL}. */
|
209 |
| - @Nullable |
210 |
| - public static AIAnimation createSafe(long address) { |
| 206 | + public static @Nullable AIAnimation createSafe(long address) { |
211 | 207 | return address == NULL ? null : new AIAnimation(address, null);
|
212 | 208 | }
|
213 | 209 |
|
@@ -250,8 +246,7 @@ public static AIAnimation.Buffer create(long address, int capacity) {
|
250 | 246 | }
|
251 | 247 |
|
252 | 248 | /** Like {@link #create(long, int) create}, but returns {@code null} if {@code address} is {@code NULL}. */
|
253 |
| - @Nullable |
254 |
| - public static AIAnimation.Buffer createSafe(long address, int capacity) { |
| 249 | + public static AIAnimation.@Nullable Buffer createSafe(long address, int capacity) { |
255 | 250 | return address == NULL ? null : new Buffer(address, capacity);
|
256 | 251 | }
|
257 | 252 |
|
@@ -323,15 +318,15 @@ public static AIAnimation.Buffer calloc(int capacity, MemoryStack stack) {
|
323 | 318 | /** Unsafe version of {@link #mNumChannels}. */
|
324 | 319 | public static int nmNumChannels(long struct) { return memGetInt(struct + AIAnimation.MNUMCHANNELS); }
|
325 | 320 | /** Unsafe version of {@link #mChannels() mChannels}. */
|
326 |
| - @Nullable public static PointerBuffer nmChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MCHANNELS), nmNumChannels(struct)); } |
| 321 | + public static @Nullable PointerBuffer nmChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MCHANNELS), nmNumChannels(struct)); } |
327 | 322 | /** Unsafe version of {@link #mNumMeshChannels}. */
|
328 | 323 | public static int nmNumMeshChannels(long struct) { return memGetInt(struct + AIAnimation.MNUMMESHCHANNELS); }
|
329 | 324 | /** Unsafe version of {@link #mMeshChannels() mMeshChannels}. */
|
330 |
| - @Nullable public static PointerBuffer nmMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMESHCHANNELS), nmNumMeshChannels(struct)); } |
| 325 | + public static @Nullable PointerBuffer nmMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMESHCHANNELS), nmNumMeshChannels(struct)); } |
331 | 326 | /** Unsafe version of {@link #mNumMorphMeshChannels}. */
|
332 | 327 | public static int nmNumMorphMeshChannels(long struct) { return memGetInt(struct + AIAnimation.MNUMMORPHMESHCHANNELS); }
|
333 | 328 | /** Unsafe version of {@link #mMorphMeshChannels() mMorphMeshChannels}. */
|
334 |
| - @Nullable public static PointerBuffer nmMorphMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMORPHMESHCHANNELS), nmNumMorphMeshChannels(struct)); } |
| 329 | + public static @Nullable PointerBuffer nmMorphMeshChannels(long struct) { return memPointerBufferSafe(memGetAddress(struct + AIAnimation.MMORPHMESHCHANNELS), nmNumMorphMeshChannels(struct)); } |
335 | 330 |
|
336 | 331 | /** Unsafe version of {@link #mName(AIString) mName}. */
|
337 | 332 | public static void nmName(long struct, AIString value) { memCopy(value.address(), struct + AIAnimation.MNAME, AIString.SIZEOF); }
|
@@ -423,23 +418,20 @@ protected AIAnimation getElementFactory() {
|
423 | 418 | @NativeType("unsigned int")
|
424 | 419 | public int mNumChannels() { return AIAnimation.nmNumChannels(address()); }
|
425 | 420 | /** @return a {@link PointerBuffer} view of the data pointed to by the {@link AIAnimation#mChannels} field. */
|
426 |
| - @Nullable |
427 | 421 | @NativeType("struct aiNodeAnim **")
|
428 |
| - public PointerBuffer mChannels() { return AIAnimation.nmChannels(address()); } |
| 422 | + public @Nullable PointerBuffer mChannels() { return AIAnimation.nmChannels(address()); } |
429 | 423 | /** @return the value of the {@link AIAnimation#mNumMeshChannels} field. */
|
430 | 424 | @NativeType("unsigned int")
|
431 | 425 | public int mNumMeshChannels() { return AIAnimation.nmNumMeshChannels(address()); }
|
432 | 426 | /** @return a {@link PointerBuffer} view of the data pointed to by the {@link AIAnimation#mMeshChannels} field. */
|
433 |
| - @Nullable |
434 | 427 | @NativeType("struct aiMeshAnim **")
|
435 |
| - public PointerBuffer mMeshChannels() { return AIAnimation.nmMeshChannels(address()); } |
| 428 | + public @Nullable PointerBuffer mMeshChannels() { return AIAnimation.nmMeshChannels(address()); } |
436 | 429 | /** @return the value of the {@link AIAnimation#mNumMorphMeshChannels} field. */
|
437 | 430 | @NativeType("unsigned int")
|
438 | 431 | public int mNumMorphMeshChannels() { return AIAnimation.nmNumMorphMeshChannels(address()); }
|
439 | 432 | /** @return a {@link PointerBuffer} view of the data pointed to by the {@link AIAnimation#mMorphMeshChannels} field. */
|
440 |
| - @Nullable |
441 | 433 | @NativeType("struct aiMeshMorphAnim **")
|
442 |
| - public PointerBuffer mMorphMeshChannels() { return AIAnimation.nmMorphMeshChannels(address()); } |
| 434 | + public @Nullable PointerBuffer mMorphMeshChannels() { return AIAnimation.nmMorphMeshChannels(address()); } |
443 | 435 |
|
444 | 436 | /** Copies the specified {@link AIString} to the {@link AIAnimation#mName} field. */
|
445 | 437 | public AIAnimation.Buffer mName(@NativeType("struct aiString") AIString value) { AIAnimation.nmName(address(), value); return this; }
|
|
0 commit comments