equal
deleted
inserted
replaced
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package sun.java2d.d3d; |
26 package sun.java2d.d3d; |
27 |
27 |
|
28 import javax.tools.annotation.GenerateNativeHeader; |
28 import sun.java2d.pipe.BufferedContext; |
29 import sun.java2d.pipe.BufferedContext; |
29 import sun.java2d.pipe.RenderBuffer; |
30 import sun.java2d.pipe.RenderBuffer; |
30 import sun.java2d.pipe.RenderQueue; |
31 import sun.java2d.pipe.RenderQueue; |
31 import sun.java2d.pipe.hw.ContextCapabilities; |
32 import sun.java2d.pipe.hw.ContextCapabilities; |
32 import static sun.java2d.pipe.BufferedOpCodes.*; |
33 import static sun.java2d.pipe.BufferedOpCodes.*; |
35 |
36 |
36 /** |
37 /** |
37 * Note that the RenderQueue lock must be acquired before calling any of |
38 * Note that the RenderQueue lock must be acquired before calling any of |
38 * the methods in this class. |
39 * the methods in this class. |
39 */ |
40 */ |
|
41 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
42 @GenerateNativeHeader |
40 class D3DContext extends BufferedContext { |
43 class D3DContext extends BufferedContext { |
41 |
44 |
42 private final D3DGraphicsDevice device; |
45 private final D3DGraphicsDevice device; |
43 |
46 |
44 D3DContext(RenderQueue rq, D3DGraphicsDevice device) { |
47 D3DContext(RenderQueue rq, D3DGraphicsDevice device) { |
138 |
141 |
139 D3DGraphicsDevice getDevice() { |
142 D3DGraphicsDevice getDevice() { |
140 return device; |
143 return device; |
141 } |
144 } |
142 |
145 |
|
146 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
147 @GenerateNativeHeader |
143 static class D3DContextCaps extends ContextCapabilities { |
148 static class D3DContextCaps extends ContextCapabilities { |
144 /** |
149 /** |
145 * Indicates the presence of pixel shaders (v2.0 or greater). |
150 * Indicates the presence of pixel shaders (v2.0 or greater). |
146 * This cap will only be set if the hardware supports the minimum number |
151 * This cap will only be set if the hardware supports the minimum number |
147 * of texture units. |
152 * of texture units. |