FogCoordAttribute Class

Inheritance diagram of FogCoordAttribute

class FogCoordAttribute(count, gl_type)

Fog coordinate attribute.

Constructor:

__init__(count, gl_type)

Methods:

enable()
get_region(buffer, start, count) Map a buffer region using this attribute as an accessor.
set_pointer(pointer)
set_region(buffer, start, count, data) Set the data over a region of the buffer.

Attributes:

plural Type: str

Methods

FogCoordAttribute.enable()
FogCoordAttribute.set_pointer(pointer)

Attributes

FogCoordAttribute.plural = 'fog_coords'

Inherited members

Methods

FogCoordAttribute.get_region(buffer, start, count)

Map a buffer region using this attribute as an accessor.

The returned region can be modified as if the buffer was a contiguous array of this attribute (though it may actually be interleaved or otherwise non-contiguous).

The returned region consists of a contiguous array of component data elements. For example, if this attribute uses 3 floats per vertex, and the count parameter is 4, the number of floats mapped will be 3 * 4 = 12.

Parameters:
  • buffer (AbstractMappable) – The buffer to map.
  • start (int) – Offset of the first vertex to map.
  • count (int) – Number of vertices to map
Return type:

AbstractBufferRegion

FogCoordAttribute.set_region(buffer, start, count, data)

Set the data over a region of the buffer.

Parameters:
  • buffer (AbstractMappable) – The buffer to modify.
  • start (int) – Offset of the first vertex to set.
  • count (int) – Number of vertices to set.
  • data (sequence) – Sequence of data components.

Table Of Contents

Previous topic

EdgeFlagAttribute Class

Next topic

GenericAttribute Class