Java Doc for OGLContext.java in  » 6.0-JDK-Modules-sun » java2d » sun » java2d » opengl » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules sun » java2d » sun.java2d.opengl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   sun.java2d.pipe.BufferedContext
      sun.java2d.opengl.OGLContext

OGLContext
class OGLContext extends BufferedContext (Code)
Note that the RenderQueue lock must be acquired before calling any of the methods in this class.


Field Summary
final static  intCAPS_DOUBLEBUFFERED
     Indicates that the context is doublebuffered.
final static  intCAPS_EMPTY
     Indicates that the context has no capabilities.
final static  intCAPS_EXT_BIOP_SHADER
     Indicates the presence of the GL_ARB_fragment_shader extension.
final static  intCAPS_EXT_FBOBJECT
     Indicates the presence of the GL_EXT_framebuffer_object extension.
final static  intCAPS_EXT_GRAD_SHADER
     Indicates the presence of the GL_ARB_fragment_shader extension.
final static  intCAPS_EXT_LCD_SHADER
     Indicates the presence of the GL_ARB_fragment_shader extension.
final static  intCAPS_EXT_MULTITEXTURE
     Indicates the presence of the GL_ARB_multitexture extension.
final static  intCAPS_EXT_TEXNONPOW2
     Indicates the presence of the GL_ARB_texture_non_power_of_two ext.
final static  intCAPS_EXT_TEXRECT
     Indicates the presence of the GL_ARB_texture_rectangle extension.
final static  intCAPS_STORED_ALPHA
     Indicates that the context supports a stored alpha channel.

Constructor Summary
 OGLContext(RenderQueue rq)
    

Method Summary
static  voidinvalidateCurrentContext()
     Invalidates the currentContext field to ensure that we properly revalidate the OGLContext (make it current, etc.) next time through the validate() method.
static  voidsetScratchSurface(OGLGraphicsConfig gc)
     Convenience method that delegates to setScratchSurface() below.
static  voidsetScratchSurface(long pConfigInfo)
     Makes the given GraphicsConfig's context current to its associated "scratch surface".
static  voidvalidateContext(OGLSurfaceData srcData, OGLSurfaceData dstData, Region clip, Composite comp, AffineTransform xform, Paint paint, SunGraphics2D sg2d, int flags)
     Fetches the OGLContext associated with the current GraphicsConfig and validates the context using the given parameters.
static  voidvalidateContext(OGLSurfaceData dstData)
     Simplified version of validateContext() that disables all context state settings.

Field Detail
CAPS_DOUBLEBUFFERED
final static int CAPS_DOUBLEBUFFERED(Code)
Indicates that the context is doublebuffered.



CAPS_EMPTY
final static int CAPS_EMPTY(Code)
Indicates that the context has no capabilities.



CAPS_EXT_BIOP_SHADER
final static int CAPS_EXT_BIOP_SHADER(Code)
Indicates the presence of the GL_ARB_fragment_shader extension. This cap will only be set if the biopshader system property has been enabled and the hardware meets our minimum requirements.



CAPS_EXT_FBOBJECT
final static int CAPS_EXT_FBOBJECT(Code)
Indicates the presence of the GL_EXT_framebuffer_object extension. This cap will only be set if the fbobject system property has been enabled and we are able to create an FBO with depth buffer.



CAPS_EXT_GRAD_SHADER
final static int CAPS_EXT_GRAD_SHADER(Code)
Indicates the presence of the GL_ARB_fragment_shader extension. This cap will only be set if the gradshader system property has been enabled and the hardware meets our minimum requirements.



CAPS_EXT_LCD_SHADER
final static int CAPS_EXT_LCD_SHADER(Code)
Indicates the presence of the GL_ARB_fragment_shader extension. This cap will only be set if the lcdshader system property has been enabled and the hardware supports the minimum number of texture units.



CAPS_EXT_MULTITEXTURE
final static int CAPS_EXT_MULTITEXTURE(Code)
Indicates the presence of the GL_ARB_multitexture extension.



CAPS_EXT_TEXNONPOW2
final static int CAPS_EXT_TEXNONPOW2(Code)
Indicates the presence of the GL_ARB_texture_non_power_of_two ext.



CAPS_EXT_TEXRECT
final static int CAPS_EXT_TEXRECT(Code)
Indicates the presence of the GL_ARB_texture_rectangle extension.



CAPS_STORED_ALPHA
final static int CAPS_STORED_ALPHA(Code)
Indicates that the context supports a stored alpha channel.




Constructor Detail
OGLContext
OGLContext(RenderQueue rq)(Code)




Method Detail
invalidateCurrentContext
static void invalidateCurrentContext()(Code)
Invalidates the currentContext field to ensure that we properly revalidate the OGLContext (make it current, etc.) next time through the validate() method. This is typically invoked from methods that affect the current context state (e.g. disposing a context or surface).



setScratchSurface
static void setScratchSurface(OGLGraphicsConfig gc)(Code)
Convenience method that delegates to setScratchSurface() below.



setScratchSurface
static void setScratchSurface(long pConfigInfo)(Code)
Makes the given GraphicsConfig's context current to its associated "scratch surface". Each GraphicsConfig maintains a native context (GLXContext on Unix, HGLRC on Windows) as well as a native pbuffer known as the "scratch surface". By making the context current to the scratch surface, we are assured that we have a current context for the relevant GraphicsConfig, and can therefore perform operations depending on the capabilities of that GraphicsConfig. For example, if the GraphicsConfig supports the GL_ARB_texture_non_power_of_two extension, then we should be able to make a non-pow2 texture for this GraphicsConfig once we make the context current to the scratch surface. This method should be used for operations with an OpenGL texture as the destination surface (e.g. a sw->texture blit loop), or in those situations where we may not otherwise have a current context (e.g. when disposing a texture-based surface).



validateContext
static void validateContext(OGLSurfaceData srcData, OGLSurfaceData dstData, Region clip, Composite comp, AffineTransform xform, Paint paint, SunGraphics2D sg2d, int flags)(Code)
Fetches the OGLContext associated with the current GraphicsConfig and validates the context using the given parameters. Most rendering operations will call this method first in order to set the necessary state before issuing rendering commands.



validateContext
static void validateContext(OGLSurfaceData dstData)(Code)
Simplified version of validateContext() that disables all context state settings.



Fields inherited from sun.java2d.pipe.BufferedContext
final public static int NO_CONTEXT_FLAGS(Code)(Java Doc)
final public static int SRC_IS_OPAQUE(Code)(Java Doc)
final public static int USE_MASK(Code)(Java Doc)
protected RenderBuffer buf(Code)(Java Doc)
protected static BufferedContext currentContext(Code)(Java Doc)
protected RenderQueue rq(Code)(Java Doc)

Methods inherited from sun.java2d.pipe.BufferedContext
public void invalidateSurfaces()(Code)(Java Doc)
public void validate(SurfaceData srcData, SurfaceData dstData, Region clip, Composite comp, AffineTransform xform, Paint paint, SunGraphics2D sg2d, int flags)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.