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

org.lwjgl.system.NativeResource Maven / Gradle / Ivy

The newest version!
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 */
package org.lwjgl.system;

/**
 * Classes that implement this interface are associated with one or more native resources. These resources must be explicitly freed when a class instance is
 * no longer used, by calling the {@link #free} method.
 *
 * 

This interface extends {@link AutoCloseable}, which means that implementations may be used as resources in try-with-resources statements.

*/ public interface NativeResource extends AutoCloseable { /** Frees any native resources held by this object. */ void free(); @Override default void close() { free(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy