0N/A * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 0N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 0N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Abstraction for a hardware accelerated surface. 0N/A * Window (or window substitute) surface 0N/A * Render-To Plain surface (pbuffer for OpenGL, Render Target surface 0N/A * A back-buffer surface (SwapChain surface for Direct3D, backbuffer for 0N/A * Render-To Texture surface (fbobject for OpenGL, texture with render-to 0N/A * attribute for Direct3D) 0N/A * Returns {@code int} representing surface's type as defined by constants 0N/A * in this interface. 0N/A * @return an integer representing this surface's type 0N/A * @see AccelSurface#UNDEFINED 0N/A * @see AccelSurface#WINDOW 0N/A * @see AccelSurface#RT_PLAIN 0N/A * @see AccelSurface#TEXTURE 0N/A * @see AccelSurface#FLIP_BACKBUFFER 0N/A * @see AccelSurface#RT_TEXTURE 0N/A * Returns a pointer to the native surface data associated with this 0N/A * Note: this pointer is only valid on the rendering thread. 0N/A * @return pointer to the native surface's data 0N/A * Returns a pointer to the real native resource 0N/A * of the specified type associated with this AccelSurface. 0N/A * Note: this pointer is only valid on the rendering thread. 0N/A * @param resType the type of the requested resource 0N/A * @return a long containing a pointer to the native resource of the 0N/A * specified type or 0L if such resource doesn't exist for this surface 0N/A * Marks this surface dirty. 0N/A * Returns whether the pipeline considers this surface valid. A surface 0N/A * may become invalid if it is disposed of, or resized. 0N/A * @return true if valid, false otherwise 0N/A * Returns whether this surface is lost. The return value is only valid 0N/A * on the render thread, meaning that even if this method returns 0N/A * {@code true} it could be lost in the next moment unless it is called 0N/A * on the rendering thread. 0N/A * @return true if the surface is known to be lost, false otherwise 0N/A * Returns the requested bounds of the destination surface. The real bounds 0N/A * of the native accelerated surface may differ. Use 0N/A * {@link #getNativeBounds} to get the bounds of the native surface. 0N/A * @return Rectangle representing java surface's bounds 0N/A * Returns real bounds of the native surface, which may differ from those 0N/A * returned by {@link #getBounds}. 0N/A * @return Rectangle representing native surface's bounds