1 /*
2 * Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package sun.java2d.pipe.hw;
27
28 import javax.tools.annotation.GenerateNativeHeader;
29
30 /**
31 * Represents a set of capabilities of a BufferedContext and associated
32 * AccelGraphicsConfig.
33 *
34 * @see AccelGraphicsConfig
35 */
36 /* No native methods here, but the constants are needed in the supporting JNI code */
37 @GenerateNativeHeader
38 public class ContextCapabilities {
39 /** Indicates that the context has no capabilities. */
40 public static final int CAPS_EMPTY = (0 << 0);
41 /** Indicates that the context supports RT surfaces with alpha channel. */
42 public static final int CAPS_RT_PLAIN_ALPHA = (1 << 1);
43 /** Indicates that the context supports RT textures with alpha channel. */
44 public static final int CAPS_RT_TEXTURE_ALPHA = (1 << 2);
45 /** Indicates that the context supports opaque RT textures. */
46 public static final int CAPS_RT_TEXTURE_OPAQUE = (1 << 3);
47 /** Indicates that the context supports multitexturing. */
48 public static final int CAPS_MULTITEXTURE = (1 << 4);
49 /** Indicates that the context supports non-pow2 texture dimensions. */
50 public static final int CAPS_TEXNONPOW2 = (1 << 5);
51 /** Indicates that the context supports non-square textures. */
52 public static final int CAPS_TEXNONSQUARE = (1 << 6);
53 /** Indicates that the context supports pixel shader 2.0 or better. */
54 public static final int CAPS_PS20 = (1 << 7);
55 /** Indicates that the context supports pixel shader 3.0 or better. */
56 public static final int CAPS_PS30 = (1 << 8);
57 /*
|
1 /*
2 * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package sun.java2d.pipe.hw;
27
28
29 /**
30 * Represents a set of capabilities of a BufferedContext and associated
31 * AccelGraphicsConfig.
32 *
33 * @see AccelGraphicsConfig
34 */
35 public class ContextCapabilities {
36 /** Indicates that the context has no capabilities. */
37 public static final int CAPS_EMPTY = (0 << 0);
38 /** Indicates that the context supports RT surfaces with alpha channel. */
39 public static final int CAPS_RT_PLAIN_ALPHA = (1 << 1);
40 /** Indicates that the context supports RT textures with alpha channel. */
41 public static final int CAPS_RT_TEXTURE_ALPHA = (1 << 2);
42 /** Indicates that the context supports opaque RT textures. */
43 public static final int CAPS_RT_TEXTURE_OPAQUE = (1 << 3);
44 /** Indicates that the context supports multitexturing. */
45 public static final int CAPS_MULTITEXTURE = (1 << 4);
46 /** Indicates that the context supports non-pow2 texture dimensions. */
47 public static final int CAPS_TEXNONPOW2 = (1 << 5);
48 /** Indicates that the context supports non-square textures. */
49 public static final int CAPS_TEXNONSQUARE = (1 << 6);
50 /** Indicates that the context supports pixel shader 2.0 or better. */
51 public static final int CAPS_PS20 = (1 << 7);
52 /** Indicates that the context supports pixel shader 3.0 or better. */
53 public static final int CAPS_PS30 = (1 << 8);
54 /*
|