libg3d Reference Manual | ||||
---|---|---|---|---|
#include <g3d/read.h> gint32 g3d_read_int8 (FILE *f); gint32 g3d_read_int16_be (FILE *f); gint32 g3d_read_int16_le (FILE *f); gint32 g3d_read_int32_be (FILE *f); gint32 g3d_read_int32_le (FILE *f); G3DFloat g3d_read_float_be (FILE *f); G3DFloat g3d_read_float_le (FILE *f); G3DDouble g3d_read_double_be (FILE *f); G3DDouble g3d_read_double_le (FILE *f); gint32 g3d_read_cstr (FILE *f, gchar *buffer, gint32 max_len);
gint32 g3d_read_int8 (FILE *f);
Read a 1 byte signed integer from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
gint32 g3d_read_int16_be (FILE *f);
Read a 2 byte big-endian signed integer from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
gint32 g3d_read_int16_le (FILE *f);
Read a 2 byte little-endian signed integer from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
gint32 g3d_read_int32_be (FILE *f);
Read a 4 byte big-endian signed integer from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
gint32 g3d_read_int32_le (FILE *f);
Read a 4 byte little-endian signed integer from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
G3DFloat g3d_read_float_be (FILE *f);
Read a 4 byte big-endian floating point number from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
G3DFloat g3d_read_float_le (FILE *f);
Read a 4 byte little-endian floating point number from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
G3DDouble g3d_read_double_be (FILE *f);
Read a 8 byte big-endian double-precision floating point number from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |
G3DDouble g3d_read_double_le (FILE *f);
Read a 8 byte little-endian double-precision floating point number from file.
|
the file to read from |
Returns : |
The read value, 0 in case of error |