Click or drag to resize

VertexAttributeSetDataT Method (T, Int32, Boolean)

Sets up the attribute for use with client data.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void SetData<T>(
	T[] data,
	int stride = 0,
	bool normalized = false
)
where T : struct, new()

Parameters

data
Type: T
client data array containing the vertices.
stride (Optional)
Type: SystemInt32
(optional) byte offset between consecutive vertex attributes. If stride is 0 (the default), the generic vertex attributes are understood to be tightly packed in the array.
normalized (Optional)
Type: SystemBoolean
(optional) flag that specifies whether integer values will be normalized. If set to True, integer values are be mapped to the range [-1,1] (for signed values) or [0,1] (for unsigned values) when they are accessed and converted to floating point. Otherwise (default), values will be converted to floats directly without normalization.

Type Parameters

T
The type of elements in the data array.
Exceptions
ExceptionCondition
GLExceptionInvalidValue if stride is negative.
Remarks
See Also

Reference