GIR Raw {gir} | R Documentation |
Functions to convert to and from packed bytes in raw vectors.
girAsRaw(inp, typ)
inp |
vector of numerics or integers; to convert to raw. |
typ |
integer; inp is converted to this GL type. One of GL_DOUBLE ,
GL_FLOAT , GL_INT , GL_UNSIGNED_INT , GL_SHORT , GL_UNSIGNED_SHORT ,
GL_BYTE r, GL_UNSIGNED_BYTE . |
girAsRaw
converts its inp
argument to a sequence of packed bytes.
Each item of inp
is converted by C type-casting to typ
,
then appended to the sequence, which is returned as a vector of storage mode raw
.
girAsRaw
returns the converted raw vector.