Tucano
0.1
A library for rapid prototyping with modern OpenGL and GLSL
|
#include <cassert>
#include <cctype>
#include <cfloat>
#include <climits>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <stdint.h>
Go to the source code of this file.
Classes | |
struct | t_ply_argument_ |
struct | t_ply_property_ |
struct | t_ply_element_ |
struct | t_ply_idriver |
struct | t_ply_odriver |
struct | t_ply_ |
Macros | |
#define | RPLY_VERSION "RPly 1.1.3" |
#define | RPLY_COPYRIGHT "Copyright (C) 2003-2013 Diego Nehab, 2014 Thiago Perrotta" |
#define | RPLY_AUTHORS "Diego Nehab, Thiago Perrotta" |
#define | PLY_INT8_MIN INT8_MIN |
#define | PLY_INT8_MAX INT8_MAX |
#define | PLY_INT16_MIN INT16_MIN |
#define | PLY_INT16_MAX INT16_MAX |
#define | PLY_INT32_MIN INT32_MIN |
#define | PLY_INT32_MAX INT32_MAX |
#define | PLY_UINT8_MAX UINT8_MAX |
#define | PLY_UINT16_MAX UINT16_MAX |
#define | PLY_UINT32_MAX UINT32_MAX |
#define | BWORD(p) (p->buffer + p->buffer_token) |
#define | BLINE(p) (p->buffer + p->buffer_token) |
#define | BFIRST(p) (p->buffer + p->buffer_first) |
#define | BSIZE(p) (p->buffer_last - p->buffer_first) |
#define | BSKIP(p, s) (p->buffer_first += s) |
Typedefs | |
typedef int8_t | t_ply_int8 |
typedef int16_t | t_ply_int16 |
typedef int32_t | t_ply_int32 |
typedef uint8_t | t_ply_uint8 |
typedef uint16_t | t_ply_uint16 |
typedef uint32_t | t_ply_uint32 |
typedef struct t_ply_ * | p_ply |
typedef struct t_ply_element_ * | p_ply_element |
typedef struct t_ply_property_ * | p_ply_property |
typedef struct t_ply_argument_ * | p_ply_argument |
typedef void(* | p_ply_error_cb) (p_ply ply, const char *message) |
typedef int(* | p_ply_read_cb) (p_ply_argument argument) |
typedef int(* | p_ply_ihandler) (p_ply ply, double *value) |
typedef int(* | p_ply_ichunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_idriver * | p_ply_idriver |
typedef int(* | p_ply_ohandler) (p_ply ply, double value) |
typedef int(* | p_ply_ochunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_odriver * | p_ply_odriver |
Enumerations | |
enum | e_ply_storage_mode { PLY_BIG_ENDIAN, PLY_LITTLE_ENDIAN, PLY_ASCII, PLY_DEFAULT } |
enum | e_ply_type { PLY_INT8, PLY_UINT8, PLY_INT16, PLY_UINT16, PLY_INT32, PLY_UIN32, PLY_FLOAT32, PLY_FLOAT64, PLY_CHAR, PLY_UCHAR, PLY_SHORT, PLY_USHORT, PLY_INT, PLY_UINT, PLY_FLOAT, PLY_DOUBLE, PLY_LIST } |
enum | e_ply_io_mode { PLY_READ, PLY_WRITE } |
Functions | |
int | ply_get_ply_user_data (p_ply ply, void **pdata, long *idata) |
p_ply | ply_open (const char *name, p_ply_error_cb error_cb, long idata, void *pdata) |
int | ply_read_header (p_ply ply) |
long | ply_set_read_cb (p_ply ply, const char *element_name, const char *property_name, p_ply_read_cb read_cb, void *pdata, long idata) |
int | ply_get_argument_element (p_ply_argument argument, p_ply_element *element, long *instance_index) |
int | ply_get_argument_property (p_ply_argument argument, p_ply_property *property, long *length, long *value_index) |
int | ply_get_argument_user_data (p_ply_argument argument, void **pdata, long *idata) |
double | ply_get_argument_value (p_ply_argument argument) |
int | ply_read (p_ply ply) |
p_ply_element | ply_get_next_element (p_ply ply, p_ply_element last) |
const char * | ply_get_next_comment (p_ply ply, const char *last) |
const char * | ply_get_next_obj_info (p_ply ply, const char *last) |
int | ply_get_element_info (p_ply_element element, const char **name, long *ninstances) |
p_ply_property | ply_get_next_property (p_ply_element element, p_ply_property last) |
int | ply_get_property_info (p_ply_property property, const char **name, e_ply_type *type, e_ply_type *length_type, e_ply_type *value_type) |
p_ply | ply_create (const char *name, e_ply_storage_mode storage_mode, p_ply_error_cb error_cb, long idata, void *pdata) |
int | ply_add_element (p_ply ply, const char *name, long ninstances) |
int | ply_add_property (p_ply ply, const char *name, e_ply_type type, e_ply_type length_type, e_ply_type value_type) |
int | ply_add_list_property (p_ply ply, const char *name, e_ply_type length_type, e_ply_type value_type) |
int | ply_add_scalar_property (p_ply ply, const char *name, e_ply_type type) |
int | ply_add_comment (p_ply ply, const char *comment) |
int | ply_add_obj_info (p_ply ply, const char *obj_info) |
int | ply_write_header (p_ply ply) |
int | ply_write (p_ply ply, double value) |
int | ply_close (p_ply ply) |
static int | ply_read_word (p_ply ply) |
static int | ply_check_word (p_ply ply) |
static void | ply_finish_word (p_ply ply, size_t size) |
static int | ply_read_line (p_ply ply) |
static int | ply_check_line (p_ply ply) |
static int | ply_read_chunk (p_ply ply, void *anybuffer, size_t size) |
static int | ply_read_chunk_reverse (p_ply ply, void *anybuffer, size_t size) |
static int | ply_write_chunk (p_ply ply, void *anybuffer, size_t size) |
static int | ply_write_chunk_reverse (p_ply ply, void *anybuffer, size_t size) |
static void | ply_reverse (void *anydata, size_t size) |
static int | ply_find_string (const char *item, const char *const list[]) |
static p_ply_element | ply_find_element (p_ply ply, const char *name) |
static p_ply_property | ply_find_property (p_ply_element element, const char *name) |
static int | ply_read_header_magic (p_ply ply) |
static int | ply_read_header_format (p_ply ply) |
static int | ply_read_header_comment (p_ply ply) |
static int | ply_read_header_obj_info (p_ply ply) |
static int | ply_read_header_property (p_ply ply) |
static int | ply_read_header_element (p_ply ply) |
static void | ply_error_cb (p_ply ply, const char *message) |
static void | ply_ferror (p_ply ply, const char *fmt,...) |
static void | ply_init (p_ply ply) |
static void | ply_element_init (p_ply_element element) |
static void | ply_property_init (p_ply_property property) |
static p_ply | ply_alloc (void) |
static p_ply_element | ply_grow_element (p_ply ply) |
static p_ply_property | ply_grow_property (p_ply ply, p_ply_element element) |
static void * | ply_grow_array (p_ply ply, void **pointer, long *nmemb, long size) |
static e_ply_storage_mode | ply_arch_endian (void) |
static int | ply_type_check (void) |
static int | ply_read_element (p_ply ply, p_ply_element element, p_ply_argument argument) |
static int | ply_read_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument) |
static int | ply_read_list_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument) |
static int | ply_read_scalar_property (p_ply ply, p_ply_element element, p_ply_property property, p_ply_argument argument) |
static int | BREFILL (p_ply ply) |
static int | iascii_int8 (p_ply ply, double *value) |
static int | iascii_uint8 (p_ply ply, double *value) |
static int | iascii_int16 (p_ply ply, double *value) |
static int | iascii_uint16 (p_ply ply, double *value) |
static int | iascii_int32 (p_ply ply, double *value) |
static int | iascii_uint32 (p_ply ply, double *value) |
static int | iascii_float32 (p_ply ply, double *value) |
static int | iascii_float64 (p_ply ply, double *value) |
static int | ibinary_int8 (p_ply ply, double *value) |
static int | ibinary_uint8 (p_ply ply, double *value) |
static int | ibinary_int16 (p_ply ply, double *value) |
static int | ibinary_uint16 (p_ply ply, double *value) |
static int | ibinary_int32 (p_ply ply, double *value) |
static int | ibinary_uint32 (p_ply ply, double *value) |
static int | ibinary_float32 (p_ply ply, double *value) |
static int | ibinary_float64 (p_ply ply, double *value) |
static int | oascii_int8 (p_ply ply, double value) |
static int | oascii_uint8 (p_ply ply, double value) |
static int | oascii_int16 (p_ply ply, double value) |
static int | oascii_uint16 (p_ply ply, double value) |
static int | oascii_int32 (p_ply ply, double value) |
static int | oascii_uint32 (p_ply ply, double value) |
static int | oascii_float32 (p_ply ply, double value) |
static int | oascii_float64 (p_ply ply, double value) |
static int | obinary_int8 (p_ply ply, double value) |
static int | obinary_uint8 (p_ply ply, double value) |
static int | obinary_int16 (p_ply ply, double value) |
static int | obinary_uint16 (p_ply ply, double value) |
static int | obinary_int32 (p_ply ply, double value) |
static int | obinary_uint32 (p_ply ply, double value) |
static int | obinary_float32 (p_ply ply, double value) |
static int | obinary_float64 (p_ply ply, double value) |
Variables | |
const int | WORDSIZE = 256 |
const int | LINESIZE = 1024 |
const int | BUFFERSIZE = (8*1024) |
static const char *const | ply_storage_mode_list [] |
static const char *const | ply_type_list [] |
static t_ply_idriver | ply_idriver_ascii |
static t_ply_idriver | ply_idriver_binary |
static t_ply_idriver | ply_idriver_binary_reverse |
static t_ply_odriver | ply_odriver_ascii |
static t_ply_odriver | ply_odriver_binary |
static t_ply_odriver | ply_odriver_binary_reverse |
#define BFIRST | ( | p | ) | (p->buffer + p->buffer_first) |
#define BLINE | ( | p | ) | (p->buffer + p->buffer_token) |
#define BSIZE | ( | p | ) | (p->buffer_last - p->buffer_first) |
#define BSKIP | ( | p, | |
s | |||
) | (p->buffer_first += s) |
#define BWORD | ( | p | ) | (p->buffer + p->buffer_token) |
#define PLY_INT16_MAX INT16_MAX |
#define PLY_INT16_MIN INT16_MIN |
#define PLY_INT32_MAX INT32_MAX |
#define PLY_INT32_MIN INT32_MIN |
#define PLY_INT8_MAX INT8_MAX |
#define PLY_INT8_MIN INT8_MIN |
#define PLY_UINT16_MAX UINT16_MAX |
#define PLY_UINT32_MAX UINT32_MAX |
#define PLY_UINT8_MAX UINT8_MAX |
#define RPLY_AUTHORS "Diego Nehab, Thiago Perrotta" |
#define RPLY_COPYRIGHT "Copyright (C) 2003-2013 Diego Nehab, 2014 Thiago Perrotta" |
#define RPLY_VERSION "RPly 1.1.3" |
typedef struct t_ply_argument_* p_ply_argument |
typedef struct t_ply_element_* p_ply_element |
typedef void(* p_ply_error_cb) (p_ply ply, const char *message) |
typedef int(* p_ply_ichunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_idriver* p_ply_idriver |
typedef int(* p_ply_ihandler) (p_ply ply, double *value) |
typedef int(* p_ply_ochunk) (p_ply ply, void *anydata, size_t size) |
typedef t_ply_odriver* p_ply_odriver |
typedef int(* p_ply_ohandler) (p_ply ply, double value) |
typedef struct t_ply_property_* p_ply_property |
typedef int(* p_ply_read_cb) (p_ply_argument argument) |
typedef int16_t t_ply_int16 |
typedef int32_t t_ply_int32 |
typedef int8_t t_ply_int8 |
typedef uint16_t t_ply_uint16 |
typedef uint32_t t_ply_uint32 |
typedef uint8_t t_ply_uint8 |
enum e_ply_io_mode |
enum e_ply_storage_mode |
enum e_ply_type |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
static |
|
inline |
|
static |
|
static |
|
static |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
static |
|
inline |
|
static |
|
static |
|
inline |
const int BUFFERSIZE = (8*1024) |
const int LINESIZE = 1024 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
const int WORDSIZE = 256 |