BufferConstFloat

Inheritance diagram of rumba.BufferConstFloat
class BufferConstFloat

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

  • BufferConstM33f

  • BufferConstM44f

  • BufferConstBox3f:cvar default_value: Static. The default value.

Methods

__eq__

Return self==value.

__getitem__

operator[](i: int) -> const_reference

__init__

Constructor(s)

__iter__

__len__

__neq__

empty()

Returns true if the buffer is empty.

read()

Return the readable data.

size()

Return the number of element in the buffer.

Properties

default_value

__init__()

Constructor(s)

BufferConst ()

Construct an empty buffer.

BufferConst (v: Value)

Cast a Value object in BufferConst.

If v has not the good type, a default value is constructed.

BufferConst (content)

Create a buffer from a content.

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