Java Doc for EGL11.java in  » 6.0-JDK-Modules » j2me » javax » microedition » khronos » egl » 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 » j2me » javax.microedition.khronos.egl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.microedition.khronos.egl.EGL11

All known Subclasses:   javax.microedition.khronos.egl.EGL11Impl,
EGL11
public interface EGL11 extends EGL10(Code)
The EGL11 interface contains the Java(TM) programming language bindings for EGL 1.1. It extends the EGL10 interface.

The documentation in this interface is normative with respect to instance variable names and values, method names and signatures, and exception behavior. The remaining documentation is placed here for convenience and does not replace the normative documentation found in the EGL specification and relevant extension specifications. EGL documentation is available at the Khronos web site.



Field Summary
final public static  intEGL_BACK_BUFFER
     EGL 1.1 constant.
final public static  intEGL_BIND_TO_TEXTURE_RGB
     EGL 1.1 constant.
final public static  intEGL_BIND_TO_TEXTURE_RGBA
     EGL 1.1 constant.
final public static  intEGL_CONTEXT_LOST
     EGL 1.1 constant.
final public static  intEGL_MAX_SWAP_INTERVAL
     EGL 1.1 constant.
final public static  intEGL_MIN_SWAP_INTERVAL
     EGL 1.1 constant.
final public static  intEGL_MIPMAP_LEVEL
     EGL 1.1 constant.
final public static  intEGL_MIPMAP_TEXTURE
     EGL 1.1 constant.
final public static  intEGL_NO_TEXTURE
     EGL 1.1 constant.
final public static  intEGL_TEXTURE_2D
     EGL 1.1 constant.
final public static  intEGL_TEXTURE_FORMAT
     EGL 1.1 constant.
final public static  intEGL_TEXTURE_RGB
     EGL 1.1 constant.
final public static  intEGL_TEXTURE_RGBA
     EGL 1.1 constant.
final public static  intEGL_TEXTURE_TARGET
     EGL 1.1 constant.


Method Summary
 booleaneglBindTexImage(EGLDisplay display, EGLSurface surface, int buffer)
     (EGL 1.1 only) Defines a two-dimensional texture image.

The texture image consists of the image data in buffer for the specified surface, and need not be copied.

The texture target, the texture format and the size of the texture components are derived from attributes of the specified surface, which must be a pbuffer supporting one of the EGL_BIND_TO_TEXTURE_RGB or EGL_BIND_TO_TEXTURE_RGBA attributes.

The pbuffer attribute EGL_TEXTURE_FORMAT determines the base internal format of the texture.

The texture target is derived from the EGL_TEXTURE_TARGET attribute of surface.

 booleaneglReleaseTexImage(EGLDisplay display, EGLSurface surface, int buffer)
     (EGL 1.1 only) Releases a color buffer that is being used as a texture.

The specified color buffer is released back to the surface.

 booleaneglSurfaceAttrib(EGLDisplay display, EGLSurface surface, int attribute, int value)
     (EGL 1.1 only) Set an EGL surface attribute.

eglSurfaceAttrib sets the value of attribute for surface to value.

 booleaneglSwapInterval(EGLDisplay display, int interval)
     (EGL 1.1 only) Specifies the minimum number of video frame periods per buffer swap for the window associated with the current context.

The interval takes effect when eglSwapBuffers is first called subsequent to the eglSwapInterval call.

The interval specified by the function applies to the draw surface bound to the context that is current on the calling thread.

If interval is set to a value of 0, buffer swaps are not synchronized to a video frame, and the swap happens as soon as the render is complete.


Field Detail
EGL_BACK_BUFFER
final public static int EGL_BACK_BUFFER(Code)
EGL 1.1 constant.



EGL_BIND_TO_TEXTURE_RGB
final public static int EGL_BIND_TO_TEXTURE_RGB(Code)
EGL 1.1 constant.



EGL_BIND_TO_TEXTURE_RGBA
final public static int EGL_BIND_TO_TEXTURE_RGBA(Code)
EGL 1.1 constant.



EGL_CONTEXT_LOST
final public static int EGL_CONTEXT_LOST(Code)
EGL 1.1 constant.



EGL_MAX_SWAP_INTERVAL
final public static int EGL_MAX_SWAP_INTERVAL(Code)
EGL 1.1 constant.



EGL_MIN_SWAP_INTERVAL
final public static int EGL_MIN_SWAP_INTERVAL(Code)
EGL 1.1 constant.



EGL_MIPMAP_LEVEL
final public static int EGL_MIPMAP_LEVEL(Code)
EGL 1.1 constant.



EGL_MIPMAP_TEXTURE
final public static int EGL_MIPMAP_TEXTURE(Code)
EGL 1.1 constant.



EGL_NO_TEXTURE
final public static int EGL_NO_TEXTURE(Code)
EGL 1.1 constant.



EGL_TEXTURE_2D
final public static int EGL_TEXTURE_2D(Code)
EGL 1.1 constant.



EGL_TEXTURE_FORMAT
final public static int EGL_TEXTURE_FORMAT(Code)
EGL 1.1 constant.



EGL_TEXTURE_RGB
final public static int EGL_TEXTURE_RGB(Code)
EGL 1.1 constant.



EGL_TEXTURE_RGBA
final public static int EGL_TEXTURE_RGBA(Code)
EGL 1.1 constant.



EGL_TEXTURE_TARGET
final public static int EGL_TEXTURE_TARGET(Code)
EGL 1.1 constant.





Method Detail
eglBindTexImage
boolean eglBindTexImage(EGLDisplay display, EGLSurface surface, int buffer)(Code)
(EGL 1.1 only) Defines a two-dimensional texture image.

The texture image consists of the image data in buffer for the specified surface, and need not be copied.

The texture target, the texture format and the size of the texture components are derived from attributes of the specified surface, which must be a pbuffer supporting one of the EGL_BIND_TO_TEXTURE_RGB or EGL_BIND_TO_TEXTURE_RGBA attributes.

The pbuffer attribute EGL_TEXTURE_FORMAT determines the base internal format of the texture.

The texture target is derived from the EGL_TEXTURE_TARGET attribute of surface. If the attribute value is EGL_TEXTURE_2D, then buffer defines a texture for the two-dimensional texture object which is bound to the current context (hereafter referred to as the current texture object).

If display and surface are the display and surface for the calling thread’s current context, eglBindTexImage performs an implicit glFlush. For other surfaces, eglBindTexImage waits for all effects from previously issued OpenGL ES commands drawing to the surface to complete before defining the texture image, as though glFinish were called on the last context to which that surface were bound.

After eglBindTexImage is called, the specified surface is no longer available for reading or writing. Any read operation, such as glReadPixels or eglCopyBuffers, which reads values from any of the surface’s color buffers or ancillary buffers will produce indeterminate results. In addition, draw operations that are done to the surface before its color buffer is released from the texture produce indeterminate results. Specifically, if the surface is current to a context and thread then rendering commands will be processed and the context state will be updated, but the surface may or may not be written.

Texture mipmap levels are automatically generated when all of the following conditions are met while calling eglBindTexImage:

The EGL_MIPMAP_TEXTURE attribute of the pbuffer being bound is EGL_TRUE.

The OpenGL ES texture parameter GL_GENERATE_MIPMAP is GL_TRUE for the currently bound texture.

The value of the EGL_MIPMAP_LEVEL attribute of the pbuffer being bound is equal to the value of the texture parameter GL_TEXTURE_BASE_LEVEL. In this case, additional mipmap levels are generated as described in section 3.8 of the OpenGL ES 1.1 Specification.

Notes

eglSwapBuffers has no effect if it is called on a bound surface.

Any existing images associated with the different mipmap levels of the texture object are freed (it is as if glTexImage was called with an image of zero width).

The color buffer is bound to a texture object. If the texture object is shared between contexts, then the color buffer is also shared. If a texture object is deleted before eglReleaseTexImage is called, then the color buffer is released and the surface is made available for reading and writing.

It is not an error to call glTexImage2D or glCopyTexImage2D to replace an image of a texture object that has a color buffer bound to it. However, these calls will cause the color buffer to be released back to the surface and new memory will be allocated for the texture. Note that the color buffer is released even if the image that is being defined is a mipmap level that was not defined by the color buffer.

eglBindTexImage is ignored if there is no current rendering context.

Errors

EGL_BAD_MATCH is generated if the surface attribute EGL_TEXTURE_FORMAT is set to EGL_NO_TEXTURE.

EGL_BAD_ACCESS is generated if buffer is already bound to a texture.

EGL_BAD_VALUE is generated if buffer is not a valid buffer (currently only EGL_BACK_BUFFER may be specified).

EGL_BAD_SURFACE is generated if surface is not an EGL surface, or is not a pbuffer surface supporting texture binding.
Parameters:
  display - Specifies the EGL display connection.
Parameters:
  surface - Specifies the EGL surface.
Parameters:
  buffer - Specifies the texture image data. true if the operation succeeds.
exception:
  IllegalArgumentException - if display isnull.
exception:
  IllegalArgumentException - if surface isnull.




eglReleaseTexImage
boolean eglReleaseTexImage(EGLDisplay display, EGLSurface surface, int buffer)(Code)
(EGL 1.1 only) Releases a color buffer that is being used as a texture.

The specified color buffer is released back to the surface. The surface is made available for reading and writing when it no longer has any color buffers bound as textures.

Notes

If the specified color buffer is no longer bound to a texture (e.g., because the texture object was deleted) then eglReleaseTexImage has no effect. No error is generated.

The contents of the color buffer are undefined when it is first released. In particular, there is no guarantee that the texture image is still present. However, the contents of other color buffers are unaffected by this call. Also, the contents of the depth and stencil buffers are not affected by eglBindTexImage and eglReleaseTexImage.

After a color buffer is released from a texture (either explicitly by calling eglReleaseTexImage or implicitly by calling a routine such as glTexImage2D), all texture images that were defined by the color buffer become NULL (it is as if glTexImage was called with an image of zero width).

Errors

EGL_BAD_MATCH is generated if the surface attribute EGL_TEXTURE_FORMAT is set to EGL_NO_TEXTURE.

EGL_BAD_VALUE is generated if buffer is not a valid buffer (currently only EGL_BACK_BUFFER may be specified).

EGL_BAD_SURFACE is generated if surface is not an EGL surface, or is not a bound pbuffer surface.
Parameters:
  display - Specifies the EGL display connection.
Parameters:
  surface - Specifies the EGL surface.
Parameters:
  buffer - Specifies the texture image data. true if the operation succeeds.
exception:
  IllegalArgumentException - if display isnull.
exception:
  IllegalArgumentException - if surface isnull.




eglSurfaceAttrib
boolean eglSurfaceAttrib(EGLDisplay display, EGLSurface surface, int attribute, int value)(Code)
(EGL 1.1 only) Set an EGL surface attribute.

eglSurfaceAttrib sets the value of attribute for surface to value. attribute can be one of the following:

  • EGL_MIPMAP_LEVEL
  • For mipmap textures, the EGL_MIPMAP_LEVEL attribute indicates which level of the mipmap should be rendered. If the value of this attribute is outside the range of supported mipmap levels, the closest valid mipmap level is selected for rendering. The default value is 0.

Notes

If the value of pbuffer attribute EGL_TEXTURE_FORMAT is EGL_NO_TEXTURE, if the value of attribute EGL_TEXTURE_TYPE is EGL_NO_TEXTURE, or if surface is not a pbuffer, then attribute EGL_MIPMAP_LEVEL may be set, but has no effect.

Errors

false is returned on failure, true otherwise.

EGL_BAD_DISPLAY is generated if display is not an EGL display connection.

EGL_NOT_INITIALIZED is generated if display has not been initialized.

EGL_BAD_SURFACE is generated if surface is not an EGL surface.

EGL_BAD_ATTRIBUTE is generated if attribute is not a valid surface attribute.
Parameters:
  display - Specifies the EGL display connection.
Parameters:
  surface - Specifies the EGL surface.
Parameters:
  attribute - Specifies the EGL surface attribute to set.
Parameters:
  value - Specifies the attributes required value.
exception:
  IllegalArgumentException - if display isnull.
exception:
  IllegalArgumentException - if surface isnull. true if the operation succeeds.




eglSwapInterval
boolean eglSwapInterval(EGLDisplay display, int interval)(Code)
(EGL 1.1 only) Specifies the minimum number of video frame periods per buffer swap for the window associated with the current context.

The interval takes effect when eglSwapBuffers is first called subsequent to the eglSwapInterval call.

The interval specified by the function applies to the draw surface bound to the context that is current on the calling thread.

If interval is set to a value of 0, buffer swaps are not synchronized to a video frame, and the swap happens as soon as the render is complete. interval is silently clamped to minimum and maximum implementation dependent values before being stored; these values are defined by EGLConfig attributes EGL_MIN_SWAP_INTERVAL and EGL_MAX_SWAP_INTERVAL respectively.

Notes

The swap interval has no effect on eglCopyBuffers.

The default swap interval is 1.

Errors

false is returned on failure, true otherwise.

EGL_BAD_CONTEXT is generated if there is no current context on the calling thread.

EGL_BAD_SURFACE is generated if there is no surface bound to the current context.
Parameters:
  display - Specifies the EGL display connection.
Parameters:
  interval - Specifies the minimum number of video frames thatare displayed before a buffer swap will occur. true if the operation succeeds.
exception:
  IllegalArgumentException - if display isnull.




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