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

org.lwjgl.bgfx.BGFXProfilerEnd Maven / Gradle / Ivy

Go to download

A cross-platform, graphics API agnostic rendering library. It provides a high performance, low level abstraction for common platform graphics APIs like OpenGL, Direct3D and Apple Metal.

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

import javax.annotation.*;

import org.lwjgl.system.*;

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

/**
 * Profiler region end.
 * 
 * 

Type

* *

 * void (*) (
 *     bgfx_callback_interface_t *_this
 * )
*/ public abstract class BGFXProfilerEnd extends Callback implements BGFXProfilerEndI { /** * Creates a {@code BGFXProfilerEnd} instance from the specified function pointer. * * @return the new {@code BGFXProfilerEnd} */ public static BGFXProfilerEnd create(long functionPointer) { BGFXProfilerEndI instance = Callback.get(functionPointer); return instance instanceof BGFXProfilerEnd ? (BGFXProfilerEnd)instance : new Container(functionPointer, instance); } /** Like {@link #create(long) create}, but returns {@code null} if {@code functionPointer} is {@code NULL}. */ @Nullable public static BGFXProfilerEnd createSafe(long functionPointer) { return functionPointer == NULL ? null : create(functionPointer); } /** Creates a {@code BGFXProfilerEnd} instance that delegates to the specified {@code BGFXProfilerEndI} instance. */ public static BGFXProfilerEnd create(BGFXProfilerEndI instance) { return instance instanceof BGFXProfilerEnd ? (BGFXProfilerEnd)instance : new Container(instance.address(), instance); } protected BGFXProfilerEnd() { super(SIGNATURE); } BGFXProfilerEnd(long functionPointer) { super(functionPointer); } private static final class Container extends BGFXProfilerEnd { private final BGFXProfilerEndI delegate; Container(long functionPointer, BGFXProfilerEndI delegate) { super(functionPointer); this.delegate = delegate; } @Override public void invoke(long _this) { delegate.invoke(_this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy