us.ihmc.rdx.HelloAssimp Maven / Gradle / Ivy
The newest version!
package us.ihmc.rdx;
import org.lwjgl.assimp.*;
import java.util.*;
import static org.lwjgl.assimp.Assimp.*;
public class HelloAssimp
{
public HelloAssimp()
{
System.out.println(aiGetLegalString());
System.out.println("aiGetVersionMajor() = " + aiGetVersionMajor());
System.out.println("aiGetVersionMinor() = " + aiGetVersionMinor());
System.out.println("aiGetVersionRevision() = " + aiGetVersionRevision());
System.out.println("aiGetCompileFlags() = " + aiGetCompileFlags());
long c = aiGetImportFormatCount();
System.out.println("\nImport formats:");
for (int i = 0; i < c; i++) {
AIImporterDesc desc = Objects.requireNonNull(aiGetImportFormatDescription(i));
System.out.println("\t" + (i + 1) + ". " + desc.mNameString() + " (" + desc.mFileExtensionsString() + ")");
}
c = aiGetExportFormatCount();
System.out.println("\nExport formats:");
for (int i = 0; i < c; i++) {
AIExportFormatDesc desc = Objects.requireNonNull(aiGetExportFormatDescription(i));
System.out.println("\t" + (i + 1) + ". " + desc.descriptionString() + " (" + desc.fileExtensionString() + ")");
}
}
public static void main(String[] args)
{
new HelloAssimp();
}
}