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

org.lwjgl.bgfx.BGFXProfilerBeginLiteral 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 begin with string literal name.
 * 
 * 

Type

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy