All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.assimp.AIFileSeek Maven / Gradle / Ivy

Go to download

A portable Open Source library to import various well-known 3D model formats in a uniform manner.

There is a newer version: 3.3.6
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.assimp;

import javax.annotation.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.MemoryUtil.*;

/**
 * 

Type

* *

 * aiReturn (*) (
 *     struct aiFile *pFile,
 *     size_t offset,
 *     aiOrigin origin
 * )
*/ public abstract class AIFileSeek extends Callback implements AIFileSeekI { /** * Creates a {@code AIFileSeek} instance from the specified function pointer. * * @return the new {@code AIFileSeek} */ public static AIFileSeek create(long functionPointer) { AIFileSeekI instance = Callback.get(functionPointer); return instance instanceof AIFileSeek ? (AIFileSeek)instance : new Container(functionPointer, instance); } /** Like {@link #create(long) create}, but returns {@code null} if {@code functionPointer} is {@code NULL}. */ @Nullable public static AIFileSeek createSafe(long functionPointer) { return functionPointer == NULL ? null : create(functionPointer); } /** Creates a {@code AIFileSeek} instance that delegates to the specified {@code AIFileSeekI} instance. */ public static AIFileSeek create(AIFileSeekI instance) { return instance instanceof AIFileSeek ? (AIFileSeek)instance : new Container(instance.address(), instance); } protected AIFileSeek() { super(SIGNATURE); } private AIFileSeek(long functionPointer) { super(functionPointer); } private static final class Container extends AIFileSeek { private final AIFileSeekI delegate; Container(long functionPointer, AIFileSeekI delegate) { super(functionPointer); this.delegate = delegate; } @Override public int invoke(long pFile, long offset, int origin) { return delegate.invoke(pFile, offset, origin); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy