BufferConstFloat

Inheritance diagram of rumba.BufferConstFloat
class BufferConstFloat

Bases: rumba.Value

A readonly buffer for basic types like floats, integers, Imath::V3f, Imath::M44f..

The predefined BufferConst types:

  • BufferConstInt32
  • BufferConstUInt8
  • BufferConstUInt32
  • BufferConstFloat
  • BufferConstDouble
  • BufferConstV2f
  • BufferConstV3f
  • BufferConstV4f
  • BufferConstV2i
  • BufferConstV3i
  • BufferConstV4i
  • BufferConstM44f
  • BufferConstBox3f

Constructors

__init__

Methods

__getitem__ operator[](i: int) -> const_reference
__iter__
empty() Returns true if the buffer is empty.
read() Return the readable data.
size() Return the number of element in the buffer.
__getitem__()

operator[](i: int) -> const_reference

Returns the i-th array element.

This method is slower than using a buffer span

Parameters:i (int) – The buffer element to return. Expect an access violation error if i is out of bounds.
Return type:const_reference
empty() → bool

Returns true if the buffer is empty.

Return type:bool
read()

Return the readable data.

Use this buffer span for the best access performances.

size() → int

Return the number of element in the buffer.

Return type:int