GLES11.GlGetMaterialfv Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| GlGetMaterialfv(Int32, Int32, FloatBuffer) |
Queries a material parameter as floating-point values. |
| GlGetMaterialfv(Int32, Int32, Single[], Int32) |
Queries a material parameter as floating-point values. |
GlGetMaterialfv(Int32, Int32, FloatBuffer)
Queries a material parameter as floating-point values.
[Android.Runtime.Register("glGetMaterialfv", "(IILjava/nio/FloatBuffer;)V", "")]
public static void GlGetMaterialfv(int face, int pname, Java.Nio.FloatBuffer? params);
[<Android.Runtime.Register("glGetMaterialfv", "(IILjava/nio/FloatBuffer;)V", "")>]
static member GlGetMaterialfv : int * int * Java.Nio.FloatBuffer -> unit
Parameters
- face
- Int32
GL_FRONT or GL_BACK; OpenGL ES uses one shared material for both.
- pname
- Int32
GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, or GL_SHININESS.
- params
- FloatBuffer
A non-null native-order writable buffer (direct or accessible array-backed), starting at its current position, with room for four color components or one shininess value. The array-backed path releases the position-adjusted pointer. The JNI minimum-size test compares bytes with scalar counts. Use a direct buffer to avoid this release path.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
GlGetMaterialfv(Int32, Int32, Single[], Int32)
Queries a material parameter as floating-point values.
[Android.Runtime.Register("glGetMaterialfv", "(II[FI)V", "")]
public static void GlGetMaterialfv(int face, int pname, float[]? params, int offset);
[<Android.Runtime.Register("glGetMaterialfv", "(II[FI)V", "")>]
static member GlGetMaterialfv : int * int * single[] * int -> unit
Parameters
- face
- Int32
GL_FRONT or GL_BACK; OpenGL ES uses one shared material for both.
- pname
- Int32
GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, or GL_SHININESS.
- params
- Single[]
A non-null output array, starting at offset, with room for four color components or one shininess value.
- offset
- Int32
The non-negative starting array index, measured in elements rather than bytes.
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.