io.qt.qt3d.render.Qt3DRender Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* Contains classes that enable 2D and 3D rendering
* Java wrapper for Qt header file Qt3DRender
*/
public final class Qt3DRender
{
static {
QtJambi_LibraryUtilities.initialize();
}
private Qt3DRender() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace Qt3DRender."); }
/**
* Java wrapper for Qt enum Qt3DRender::API
*/
public enum API implements QtEnumerator {
/**
* Representing Qt3DRender:: API:: OpenGL
*/
OpenGL(0),
/**
* Representing Qt3DRender:: API:: Vulkan
*/
Vulkan(1),
/**
* Representing Qt3DRender:: API:: DirectX
*/
DirectX(2),
/**
* Representing Qt3DRender:: API:: Metal
*/
Metal(3),
/**
* Representing Qt3DRender:: API:: RHI
*/
RHI(4),
/**
* Representing Qt3DRender:: API:: Null
*/
Null(5);
static {
QtJambi_LibraryUtilities.initialize();
}
private API(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull API resolve(int value) {
switch (value) {
case 0: return OpenGL;
case 1: return Vulkan;
case 2: return DirectX;
case 3: return Metal;
case 4: return RHI;
case 5: return Null;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
}