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


javax.microedition.khronos.opengles.GL11Ext

All known Subclasses:   com.sun.jsr239.GL11Impl,
GL11Ext
public interface GL11Ext extends GL(Code)
The GL11Ext interface contains the Java(TM) programming language bindings for all optional profile extensions to OpenGL(R) ES 1.1.

This interface contains constants and methods associated with the optional profile extensions for OpenGL ES 1.1. The runtime OpenGL ES engine may or may not implement any particular extensions defined in the extension pack. Functions that require a particular extension will throw an UnsupportedOperationException if the extension is not available at runtime.

The OpenGL ES 1.1 optional profile extensions comprise the following:

  • OES_draw_texture
  • OES_matrix_palette

The documentation in this class 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 OpenGL ES 1.1 specification and the OpenGL specification versions it references.



Field Summary
 intGL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_MATRIX_INDEX_ARRAY_OES
     Constant for use with glEnableClientState and glDisableClientState (OES_matrix_palette extension).
 intGL_MATRIX_INDEX_ARRAY_POINTER_OES
     Constant for use with glGetPointer (OES_matrix_palette extension).
 intGL_MATRIX_INDEX_ARRAY_SIZE_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_MATRIX_INDEX_ARRAY_STRIDE_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_MATRIX_INDEX_ARRAY_TYPE_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_MATRIX_PALETTE_OES
     Constant for use with glMatrixMode (OES_matrix_palette extension).
 intGL_MAX_PALETTE_MATRICES_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_MAX_VERTEX_UNITS_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_TEXTURE_CROP_RECT_OES
     Constant for use with glTexParameter (OES_draw_texture extension).
 intGL_WEIGHT_ARRAY_BUFFER_BINDING_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_WEIGHT_ARRAY_OES
     Constant for use with glEnableClientState and glDisableClientState (OES_matrix_palette extension).
 intGL_WEIGHT_ARRAY_POINTER_OES
     Constant for use with glGetPointer (OES_matrix_palette extension).
 intGL_WEIGHT_ARRAY_SIZE_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_WEIGHT_ARRAY_STRIDE_OES
     Constant for use with glGet (OES_matrix_palette extension).
 intGL_WEIGHT_ARRAY_TYPE_OES
     Constant for use with glGet (OES_matrix_palette extension).


Method Summary
 voidglCurrentPaletteMatrixOES(int matrixpaletteindex)
     (OES_matrix_palette extension) Defines which of the palette’s matrices is affected by subsequent matrix operations.
 voidglDrawTexfOES(float x, float y, float z, float width, float height)
     (OES_draw_texture extension) glDrawTexOES draws a texture rectangle to the screen.

x and y are given directly in window (viewport) coordinates.

z is mapped to window depth Zw as follows:

 If z <= 0 then Zw = n
 If z >= 1 then Zw = f
 Otherwise Zw = n + z * (f - n)
 
where n and f are the near and far values of GL_DEPTH_RANGE respectively.

width and height specify the width and height of the affected screen rectangle in pixels.

 voidglDrawTexfvOES(float[] coords, int offset)
     (OES_draw_texture extension) Floating-point array version of glDrawTexOES.
 voidglDrawTexfvOES(FloatBuffer coords)
     (OES_draw_texture extension) Floating-point Buffer version of glDrawTexOES.
 voidglDrawTexiOES(int x, int y, int z, int width, int height)
     (OES_draw_texture extension) Integer version of glDrawTexOES.
 voidglDrawTexivOES(int[] coords, int offset)
     (OES_draw_texture extension) Integer array version of glDrawTexOES.
 voidglDrawTexivOES(IntBuffer coords)
     (OES_draw_texture extension) Integer Buffer version of glDrawTexOES.
 voidglDrawTexsOES(short x, short y, short z, short width, short height)
     (OES_draw_texture extension) Short integer version of glDrawTexOES.
 voidglDrawTexsvOES(short[] coords, int offset)
     (OES_draw_texture extension) Short integer array version of glDrawTexOES.
 voidglDrawTexsvOES(ShortBuffer coords)
     (OES_draw_texture extension) Short integer Buffer version of glDrawTexOES.
 voidglDrawTexxOES(int x, int y, int z, int width, int height)
     (OES_draw_texture extension) Fixed-point version of glDrawTexOES.
 voidglDrawTexxvOES(int[] coords, int offset)
     (OES_draw_texture extension) Fixed-point array version of glDrawTexOES.
 voidglDrawTexxvOES(IntBuffer coords)
     (OES_draw_texture extension) Fixed-point Buffer version of glDrawTexOES.
 voidglEnable(int cap)
     (1.1 + OES_matrix_palette extension) Enable server-side GL capabilities.
 voidglEnableClientState(int array)
     (OES_matrix_palette extension) Enable client-side capability.

The OES_matrix_palette extension adds three additional values for array:

  • GL_MATRIX_INDEX_ARRAY_OES

    If enabled, the matrix index array is enabled.

 voidglLoadPaletteFromModelViewMatrixOES()
     (OES_matrix_palette extension) Copies the current model view matrix to a matrix in the current matrix palette.
 voidglMatrixIndexPointerOES(int size, int type, int stride, Buffer pointer)
     (OES_matrix_palette extension) Define an array of matrix indices.

glMatrixIndexPointer specifies the location and data of an array of matrix indices to use when rendering.

 voidglMatrixIndexPointerOES(int size, int type, int stride, int offset)
     VBO version of glMatrixIndexPointerOES.
 voidglTexParameterfv(int target, int pname, float[] params, int offset)
     (OES_draw_texture extension) Set texture parameters.
 voidglWeightPointerOES(int size, int type, int stride, Buffer pointer)
     (OES_matrix_palette extension) Define an array of weights.

glWeightPointer specifies the location and data of an array of weights to use when rendering.

 voidglWeightPointerOES(int size, int type, int stride, int offset)
     (OES_matrix_palette extension) VBO version of glWeightPointerOES.

Field Detail
GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES
int GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_MATRIX_INDEX_ARRAY_OES
int GL_MATRIX_INDEX_ARRAY_OES(Code)
Constant for use with glEnableClientState and glDisableClientState (OES_matrix_palette extension).



GL_MATRIX_INDEX_ARRAY_POINTER_OES
int GL_MATRIX_INDEX_ARRAY_POINTER_OES(Code)
Constant for use with glGetPointer (OES_matrix_palette extension).



GL_MATRIX_INDEX_ARRAY_SIZE_OES
int GL_MATRIX_INDEX_ARRAY_SIZE_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_MATRIX_INDEX_ARRAY_STRIDE_OES
int GL_MATRIX_INDEX_ARRAY_STRIDE_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_MATRIX_INDEX_ARRAY_TYPE_OES
int GL_MATRIX_INDEX_ARRAY_TYPE_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_MATRIX_PALETTE_OES
int GL_MATRIX_PALETTE_OES(Code)
Constant for use with glMatrixMode (OES_matrix_palette extension).



GL_MAX_PALETTE_MATRICES_OES
int GL_MAX_PALETTE_MATRICES_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_MAX_VERTEX_UNITS_OES
int GL_MAX_VERTEX_UNITS_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_TEXTURE_CROP_RECT_OES
int GL_TEXTURE_CROP_RECT_OES(Code)
Constant for use with glTexParameter (OES_draw_texture extension).



GL_WEIGHT_ARRAY_BUFFER_BINDING_OES
int GL_WEIGHT_ARRAY_BUFFER_BINDING_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_WEIGHT_ARRAY_OES
int GL_WEIGHT_ARRAY_OES(Code)
Constant for use with glEnableClientState and glDisableClientState (OES_matrix_palette extension).



GL_WEIGHT_ARRAY_POINTER_OES
int GL_WEIGHT_ARRAY_POINTER_OES(Code)
Constant for use with glGetPointer (OES_matrix_palette extension).



GL_WEIGHT_ARRAY_SIZE_OES
int GL_WEIGHT_ARRAY_SIZE_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_WEIGHT_ARRAY_STRIDE_OES
int GL_WEIGHT_ARRAY_STRIDE_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).



GL_WEIGHT_ARRAY_TYPE_OES
int GL_WEIGHT_ARRAY_TYPE_OES(Code)
Constant for use with glGet (OES_matrix_palette extension).





Method Detail
glCurrentPaletteMatrixOES
void glCurrentPaletteMatrixOES(int matrixpaletteindex)(Code)
(OES_matrix_palette extension) Defines which of the palette’s matrices is affected by subsequent matrix operations.

glCurrentPaletteMatrixOES defines which of the palette’s matrices is affected by subsequent matrix operations when the current matrix mode is GL_MATRIX_PALETTE_OES.

Errors

GL_INVALID_VALUE is generated if index is not between 0 and GL_MAX_PALETTE_MATRICES_OES - 1.
Parameters:
  matrixpaletteindex - Specifies the index into the palette's matrices.
exception:
  UnsupportedOperationException - if the underlyingruntime engine does not support theOES_matrix_palette extension.




glDrawTexfOES
void glDrawTexfOES(float x, float y, float z, float width, float height)(Code)
(OES_draw_texture extension) glDrawTexOES draws a texture rectangle to the screen.

x and y are given directly in window (viewport) coordinates.

z is mapped to window depth Zw as follows:

 If z <= 0 then Zw = n
 If z >= 1 then Zw = f
 Otherwise Zw = n + z * (f - n)
 
where n and f are the near and far values of GL_DEPTH_RANGE respectively.

width and height specify the width and height of the affected screen rectangle in pixels. These values may be positive or negative; however if either of these are negative, nothing is drawn.

Calling one of the DrawTex functions generates a fragment for each pixel that overlaps the screen rectangle bounded by (x, y) and (x + width), (y + height). For each generated fragment, the depth is given by Zw as defined above, and the color by the current color.

Texture coordinates for each texture unit are computed as follows:

Let X and Y be the screen x and y coordinates of each sample point associated with the fragment. Let Wt and Ht be the width and height in texels of the texture currently bound to the texture unit. (If the texture is a mipmap, let Wt and Ht be the dimensions of the level specified by GL_TEXTURE_BASE_LEVEL). Let Ucr, Vcr, Wcr and Hcr be (respectively) the four integers that make up the texture crop rectangle parameter for the currently bound texture. The fragment texture coordinates (s, t, r, q) are given by:

 s = (Ucr + (X - x) * (Wcr / width)) / Wt
 t = (Vcr + (Y - y) * (Hcr / height)) / Ht
 r = 0
 q = 1
 

Notes

In the specific case where X, Y, x and y are all integers, Wcr/width and Hcr/height are both equal to one, the base level is used for the texture read, and fragments are sampled at pixel centers, implementations are required to ensure that the resulting u, v texture indices are also integers. This results in a one-to-one mapping of texels to fragments.

Note that Wcr and/or Hcr can be negative. The formulas given above for s and t still apply in this case. The result is that if Wcr is negative, the source rectangle for glDrawTexOES operations lies to the left of the reference point (Ucr, Vcr) rather than to the right of it, and appears right-to-left reversed on the screen after a call to DrawTex. Similarly, if Hcr is negative, the source rectangle lies below the reference point (Ucr, Vcr) rather than above it, and appears upside-down on the screen.

Note also that s, t, r, and q are computed for each fragment as part of glDrawTexOES rendering. This implies that the texture matrix is ignored and has no effect on the rendered result.

glDrawTexOES is available only if the OES_draw_texture extension is supported by your implementation.
Parameters:
  x - Specifies the x position of the affected screen rectangle.
Parameters:
  y - Specifies the x position of the affected screen rectangle.
Parameters:
  z - Specifies the x position of the affected screen rectangle.
Parameters:
  width - Specifies the width of the affected screen rectanglein pixels.
Parameters:
  height - Specifies the height of the affected screenrectangle in pixels.
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.




glDrawTexfvOES
void glDrawTexfvOES(float[] coords, int offset)(Code)
(OES_draw_texture extension) Floating-point array version of glDrawTexOES.
Parameters:
  coords - An array of at least 5 elements containing the x,y, z, width and height values.
Parameters:
  offset - the starting offset within thecoords array.
See Also:   GL11Ext.glDrawTexfOES(float x,float y,float z,float width,float height)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if offset isless than 0.
exception:
  IllegalArgumentException - if coords isnull or if coords.length - offset isless than 5.



glDrawTexfvOES
void glDrawTexfvOES(FloatBuffer coords)(Code)
(OES_draw_texture extension) Floating-point Buffer version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfvOES(float[] coords,int offset)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if coords isnull or if coords.remaining() is less than 5.



glDrawTexiOES
void glDrawTexiOES(int x, int y, int z, int width, int height)(Code)
(OES_draw_texture extension) Integer version of glDrawTexOES.
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.



glDrawTexivOES
void glDrawTexivOES(int[] coords, int offset)(Code)
(OES_draw_texture extension) Integer array version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfvOES(float[] coords,int offset)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if offset isless than 0.
exception:
  IllegalArgumentException - if coords isnull or if coords.length - offset isless than 5.



glDrawTexivOES
void glDrawTexivOES(IntBuffer coords)(Code)
(OES_draw_texture extension) Integer Buffer version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfvOES(float[] coords,int offset)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if coords isnull or if coords.remaining() is less than 5.



glDrawTexsOES
void glDrawTexsOES(short x, short y, short z, short width, short height)(Code)
(OES_draw_texture extension) Short integer version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfOES(float x,float y,float z,float width,float height)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.



glDrawTexsvOES
void glDrawTexsvOES(short[] coords, int offset)(Code)
(OES_draw_texture extension) Short integer array version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfvOES(float[] coords,int offset)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if offset isless than 0.
exception:
  IllegalArgumentException - if coords isnull or if coords.length - offset isless than 5.



glDrawTexsvOES
void glDrawTexsvOES(ShortBuffer coords)(Code)
(OES_draw_texture extension) Short integer Buffer version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfvOES(float[] coords,int offset)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if coords isnull or if coords.remaining() is less than 5.



glDrawTexxOES
void glDrawTexxOES(int x, int y, int z, int width, int height)(Code)
(OES_draw_texture extension) Fixed-point version of glDrawTexOES.
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.



glDrawTexxvOES
void glDrawTexxvOES(int[] coords, int offset)(Code)
(OES_draw_texture extension) Fixed-point array version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfvOES(float[] coords,int offset)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if offset isless than 0.
exception:
  IllegalArgumentException - if coords isnull or if coords.length - offset isless than 5.



glDrawTexxvOES
void glDrawTexxvOES(IntBuffer coords)(Code)
(OES_draw_texture extension) Fixed-point Buffer version of glDrawTexOES.
See Also:   GL11Ext.glDrawTexfvOES(float[] coords,int offset)
exception:
  UnsupportedOperationException - if theOES_draw_texture extension is not available.
exception:
  IllegalArgumentException - if coords isnull or if coords.remaining() is less than 5.



glEnable
void glEnable(int cap)(Code)
(1.1 + OES_matrix_palette extension) Enable server-side GL capabilities.

The matrix palette extension is enabled if cap assumes the value GL_MATRIX_PALETTE_OES. See glMatrixMode.
See Also:   GL11.glEnable(int cap)




glEnableClientState
void glEnableClientState(int array)(Code)
(OES_matrix_palette extension) Enable client-side capability.

The OES_matrix_palette extension adds three additional values for array:

  • GL_MATRIX_INDEX_ARRAY_OES

    If enabled, the matrix index array is enabled. See glMatrixIndexPointer.

  • GL_WEIGHT_ARRAY_OES

    If enabled, the weight array is enabled. See glWeightPointer.


See Also:   GL11.glEnableClientState(int array)



glLoadPaletteFromModelViewMatrixOES
void glLoadPaletteFromModelViewMatrixOES()(Code)
(OES_matrix_palette extension) Copies the current model view matrix to a matrix in the current matrix palette.

glLoadPaletteFromModelViewMatrixOES copies the current model view matrix to a matrix in the current matrix palette, as specified by glCurrentPaletteMatrix.
exception:
  UnsupportedOperationException - if the underlyingruntime engine does not support theOES_matrix_palette extension.




glMatrixIndexPointerOES
void glMatrixIndexPointerOES(int size, int type, int stride, Buffer pointer)(Code)
(OES_matrix_palette extension) Define an array of matrix indices.

glMatrixIndexPointer specifies the location and data of an array of matrix indices to use when rendering. size specifies the number of matrix indices per vertex and type the data type of the coordinates. stride specifies the byte stride from one matrix index to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations.)

These matrices indices are used to blend corresponding matrices for a given vertex.

When a matrix index array is specified, size, type, stride, and pointer are saved as client-side state.

If the matrix index array is enabled, it is used when glDrawArrays, or glDrawElements is called. To enable and disable the vertex array, call glEnableClientState and glDisableClientState with the argument GL_MATRIX_INDEX_ARRAY_OES. The matrix index array is initially disabled and isn't accessed when glDrawArrays or glDrawElements is called.

Use glDrawArrays to construct a sequence of primitives (all of the same type) from prespecified vertex and vertex attribute arrays. Use glDrawElements to construct a sequence of primitives by indexing vertices and vertex attributes.

Notes

glMatrixIndexPointer is typically implemented on the client side.

Errors

GL_INVALID_VALUE is generated if size is greater than GL_MAX_VERTEX_UNITS_OES.

GL_INVALID_ENUM is generated if type is is not an accepted value.

GL_INVALID_VALUE is generated if stride is negative.
Parameters:
  size - Specifies the number of matrix indices pervertex. Must be is less than or equal toGL_MAX_VERTEX_UNITS_OES. The initial value is 0.
Parameters:
  type - Specifies the data type of each matrix index in thearray. Symbolic constant GL_UNSIGNED_BYTE isaccepted. The initial value is GL_UNSIGNED_BYTE.
Parameters:
  stride - Specifies the byte offset between consecutivematrix indices. If stride is 0, the matrix indices are understoodto be tightly packed in the array. The initial value is 0.
Parameters:
  pointer - Specifies a buffer containing the first matrixindex of the first vertex in the array. The initial value is 0.
exception:
  UnsupportedOperationException - if the underlyingruntime engine does not support theOES_matrix_palette extension.
exception:
  IllegalArgumentException - if pointer isnull.
exception:
  IllegalStateException - if VBOs are enabled.




glMatrixIndexPointerOES
void glMatrixIndexPointerOES(int size, int type, int stride, int offset)(Code)
VBO version of glMatrixIndexPointerOES.
See Also:   GL11Ext.glMatrixIndexPointerOES(int size,int type,int stride,Buffer pointer)
exception:
  UnsupportedOperationException - if the underlyingruntime engine does not support theOES_matrix_palette extension.
throws:
  IllegalStateException - if VBOs are not enabled.



glTexParameterfv
void glTexParameterfv(int target, int pname, float[] params, int offset)(Code)
(OES_draw_texture extension) Set texture parameters. The OES_draw_texture extension adds an additoanl value for pname, GL_TEXTURE_CROP_RECT_OES, which sets the texture cropping rectangle for use by glDrawTexOES.
See Also:   GL11.glTexParameterfv(int targetint pnamefloat[] paramsint offset)



glWeightPointerOES
void glWeightPointerOES(int size, int type, int stride, Buffer pointer)(Code)
(OES_matrix_palette extension) Define an array of weights.

glWeightPointer specifies the location and data of an array of weights to use when rendering. size specifies the number of weights per vertex and type the data type of the coordinates. stride specifies the byte stride from one weight to the next allowing vertices and attributes to be packed into a single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations.)

These weights are used to blend corresponding matrices for a given vertex.

When a weight array is specified, size, type, stride, and pointer are saved as client-side state.

If the weight array is enabled, it is used when glDrawArrays, or glDrawElements is called. To enable and disable the vertex array, call glEnableClientState and glDisableClientState with the argument GL_WEIGHT_ARRAY_OES. The weight array is initially disabled and isn't accessed when glDrawArrays or glDrawElements is called.

Use glDrawArrays to construct a sequence of primitives (all of the same type) from prespecified vertex and vertex attribute arrays. Use glDrawElements to construct a sequence of primitives by indexing vertices and vertex attributes.

Notes

glWeightPointer is typically implemented on the client side.

Errors

GL_INVALID_VALUE is generated if size is greater than GL_MAX_VERTEX_UNITS_OES.

GL_INVALID_ENUM is generated if type is is not an accepted value.

GL_INVALID_VALUE is generated if stride is negative.
Parameters:
  size - Specifies the number of weights per vertex. Must beis less than or equal toGL_MAX_VERTEX_UNITS_OES. The initial value is 0.
Parameters:
  type - Specifies the data type of each weight in thearray. Symbolic constant GL_FIXED isaccepted. However, the common profile also accepts the symbolicconstant GL_FLOAT as well. The initial value isGL_FIXED for the common lite profile, orGL_FLOAT for the common profile.
Parameters:
  stride - Specifies the byte offset between consecutiveweights. If stride is 0, the weights are understoodto be tightly packed in the array. The initial value is 0.
Parameters:
  pointer - Specifies a Buffer containing theweights of each vertex in the array. The initial value is 0.
exception:
  UnsupportedOperationException - if the underlyingruntime engine does not support theOES_matrix_palette extension.
exception:
  IllegalArgumentException - if pointer isnull.
exception:
  IllegalStateException - if VBOs are enabled.




glWeightPointerOES
void glWeightPointerOES(int size, int type, int stride, int offset)(Code)
(OES_matrix_palette extension) VBO version of glWeightPointerOES.
See Also:   GL11Ext.glWeightPointerOES(int size,int type,int stride,Buffer pointer)
exception:
  UnsupportedOperationException - if the underlyingruntime engine does not support theOES_matrix_palette extension.
exception:
  IllegalStateException - if VBOs are not enabled.



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