Blender V2.61 - r43446
|
#include <stdio.h>
#include <stddef.h>
Go to the source code of this file.
#define myalloc | ( | mem_size | ) | my_alloc((mem_size), __LINE__, __FILE__) |
Definition at line 158 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_ASCII 1 |
***** BEGIN GPL LICENSE BLOCK *****
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.
The Original Code is: all of this file.
Contributor(s): none yet.
***** END GPL LICENSE BLOCK *****
Definition at line 70 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_BINARY_BE 2 |
Definition at line 71 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_BINARY_LE 3 |
Definition at line 72 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_CHAR 1 |
Definition at line 80 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_DOUBLE 8 |
Definition at line 87 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_END_TYPE 9 |
Definition at line 88 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_ERROR -1 |
Definition at line 75 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_FLOAT 7 |
Definition at line 86 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_INT 3 |
Definition at line 82 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_LIST 1 |
Definition at line 91 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_OKAY 0 |
Definition at line 74 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_SCALAR 0 |
Definition at line 90 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_SHORT 2 |
Definition at line 81 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_START_TYPE 0 |
Definition at line 79 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_UCHAR 4 |
Definition at line 83 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_UINT 6 |
Definition at line 85 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
#define PLY_USHORT 5 |
Definition at line 84 of file decimation/test/decimate_glut_test/intern/ply/ply.h.
typedef struct PlyElement PlyElement |
typedef struct PlyOtherElems PlyOtherElems |
typedef struct PlyOtherProp PlyOtherProp |
typedef struct PlyProperty PlyProperty |
int equal_strings | ( | char * | , |
char * | |||
) |
Definition at line 1417 of file bsp/test/BSP_GhostTest/plyfile.c.
static char* my_alloc | ( | ) | [static] |
void ply_close | ( | PlyFile * | ) |
Definition at line 1383 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::fp, and addon::engine::free().
void ply_describe_element | ( | PlyFile * | , |
char * | , | ||
int | , | ||
int | , | ||
PlyProperty * | |||
) |
Definition at line 267 of file bsp/test/BSP_GhostTest/plyfile.c.
References copy_property(), find_element(), i, myalloc, NAMED_PROP, PlyElement::nprops, NULL, PlyElement::num, PlyElement::props, and PlyElement::store_prop.
void ply_describe_other_elements | ( | PlyFile * | , |
PlyOtherElems * | |||
) |
Definition at line 1304 of file bsp/test/BSP_GhostTest/plyfile.c.
References OtherElem::elem_count, OtherElem::elem_name, i, NULL, PlyOtherElems::num_elems, PlyFile::other_elems, PlyOtherElems::other_list, OtherElem::other_props, ply_describe_other_properties(), and ply_element_count().
void ply_describe_property | ( | PlyFile * | , |
char * | , | ||
PlyProperty * | |||
) |
Definition at line 312 of file bsp/test/BSP_GhostTest/plyfile.c.
References copy_property(), find_element(), myalloc, NAMED_PROP, PlyElement::nprops, NULL, PlyElement::props, and PlyElement::store_prop.
void ply_element_count | ( | PlyFile * | , |
char * | , | ||
int | |||
) |
Definition at line 418 of file bsp/test/BSP_GhostTest/plyfile.c.
References find_element(), NULL, and PlyElement::num.
void ply_free_other_elements | ( | PlyOtherElems * | ) |
char** ply_get_comments | ( | PlyFile * | , |
int * | |||
) |
Definition at line 1035 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::comments, and PlyFile::num_comments.
void ply_get_element | ( | PlyFile * | , |
void * | |||
) |
Definition at line 1015 of file bsp/test/BSP_GhostTest/plyfile.c.
References ascii_get_element(), binary_get_element(), PlyFile::file_type, and PLY_ASCII.
PlyProperty** ply_get_element_description | ( | PlyFile * | , |
char * | , | ||
int * | , | ||
int * | |||
) |
Definition at line 878 of file bsp/test/BSP_GhostTest/plyfile.c.
References copy_property(), find_element(), i, myalloc, PlyElement::nprops, NULL, PlyElement::num, and PlyElement::props.
void ply_get_element_setup | ( | PlyFile * | , |
char * | , | ||
int | , | ||
PlyProperty * | |||
) |
Definition at line 922 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyProperty::count_internal, PlyProperty::count_offset, find_element(), find_property(), i, PlyProperty::internal_type, NULL, PlyProperty::offset, STORE_PROP, PlyElement::store_prop, and PlyFile::which_elem.
void ply_get_info | ( | PlyFile * | , |
float * | , | ||
int * | |||
) |
Definition at line 1403 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::file_type, NULL, and PlyFile::version.
char** ply_get_obj_info | ( | PlyFile * | , |
int * | |||
) |
Definition at line 1054 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::num_obj_info, and PlyFile::obj_info.
PlyOtherElems* ply_get_other_element | ( | PlyFile * | , |
char * | , | ||
int | |||
) |
Definition at line 1232 of file bsp/test/BSP_GhostTest/plyfile.c.
References OtherElem::elem_count, OtherElem::elem_name, find_element(), i, myalloc, NULL, PlyOtherElems::num_elems, OtherElem::other_data, PlyFile::other_elems, PlyOtherElems::other_list, OtherElem::other_props, ply_get_element(), and ply_get_other_properties().
PlyOtherProp* ply_get_other_properties | ( | PlyFile * | , |
char * | , | ||
int | |||
) |
Definition at line 1143 of file bsp/test/BSP_GhostTest/plyfile.c.
References copy_property(), find_element(), i, myalloc, PlyOtherProp::name, NO_OTHER_PROPS, PlyElement::nprops, PlyOtherProp::nprops, NULL, PlyElement::other_offset, PlyElement::other_size, PlyElement::props, PlyOtherProp::props, setup_other_props(), PlyOtherProp::size, PlyElement::store_prop, and PlyFile::which_elem.
void ply_get_property | ( | PlyFile * | , |
char * | , | ||
PlyProperty * | |||
) |
Definition at line 973 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyProperty::count_internal, PlyProperty::count_offset, find_element(), find_property(), PlyProperty::internal_type, PlyProperty::name, NULL, PlyProperty::offset, STORE_PROP, PlyElement::store_prop, and PlyFile::which_elem.
void ply_header_complete | ( | PlyFile * | ) |
Definition at line 445 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::comments, PlyProperty::count_external, PlyFile::elems, PlyProperty::external_type, PlyFile::file_type, PlyFile::fp, i, PlyProperty::is_list, PlyProperty::name, PlyElement::name, PlyFile::nelems, PlyElement::nprops, PlyElement::num, PlyFile::num_comments, PlyFile::num_obj_info, PlyFile::obj_info, PLY_ASCII, PLY_BINARY_BE, PLY_BINARY_LE, PlyElement::props, and write_scalar_type().
PlyFile* ply_open_for_reading | ( | char * | , |
int * | , | ||
char *** | , | ||
int * | , | ||
float * | |||
) |
Definition at line 824 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::file_type, myalloc, NULL, ply_read(), strlen(), and PlyFile::version.
PlyFile* ply_open_for_writing | ( | char * | , |
int | , | ||
char ** | , | ||
int | , | ||
float * | |||
) |
Definition at line 214 of file bsp/test/BSP_GhostTest/plyfile.c.
References myalloc, NULL, ply_write(), strlen(), and PlyFile::version.
void ply_put_comment | ( | PlyFile * | , |
char * | |||
) |
Definition at line 655 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::comments, myalloc, and PlyFile::num_comments.
void ply_put_element | ( | PlyFile * | , |
void * | |||
) |
Definition at line 542 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyProperty::count_external, PlyProperty::count_internal, PlyProperty::count_offset, PlyProperty::external_type, PlyFile::file_type, PlyFile::fp, get_stored_item(), PlyProperty::internal_type, PlyProperty::is_list, PlyElement::nprops, PlyProperty::offset, PlyElement::other_offset, OTHER_PROP, PLY_ASCII, ply_type_size, PlyElement::props, PlyElement::store_prop, PlyFile::which_elem, write_ascii_item(), and write_binary_item().
void ply_put_element_setup | ( | PlyFile * | , |
char * | |||
) |
Definition at line 518 of file bsp/test/BSP_GhostTest/plyfile.c.
References find_element(), NULL, and PlyFile::which_elem.
void ply_put_obj_info | ( | PlyFile * | , |
char * | |||
) |
Definition at line 679 of file bsp/test/BSP_GhostTest/plyfile.c.
References myalloc, PlyFile::num_obj_info, and PlyFile::obj_info.
void ply_put_other_elements | ( | PlyFile * | ) |
Definition at line 1337 of file bsp/test/BSP_GhostTest/plyfile.c.
References OtherElem::elem_count, OtherElem::elem_name, i, NULL, PlyOtherElems::num_elems, OtherElem::other_data, PlyFile::other_elems, PlyOtherElems::other_list, ply_put_element(), and ply_put_element_setup().
PlyFile* ply_read | ( | FILE * | , |
int * | , | ||
char *** | |||
) |
Definition at line 717 of file bsp/test/BSP_GhostTest/plyfile.c.
References add_comment(), add_element(), add_obj_info(), add_property(), PlyFile::comments, DONT_STORE_PROP, PlyFile::elems, equal_strings(), PlyFile::file_type, PlyFile::fp, addon::engine::free(), get_words(), i, myalloc, PlyElement::name, PlyFile::nelems, NO_OTHER_PROPS, PlyElement::nprops, NULL, PlyFile::num_comments, PlyFile::num_obj_info, PlyFile::obj_info, PlyFile::other_elems, PlyElement::other_offset, PLY_ASCII, PLY_BINARY_BE, PLY_BINARY_LE, PlyElement::store_prop, and PlyFile::version.
PlyFile* ply_write | ( | FILE * | , |
int | , | ||
char ** | , | ||
int | |||
) |
Definition at line 158 of file bsp/test/BSP_GhostTest/plyfile.c.
References PlyFile::elems, PlyFile::file_type, PlyFile::fp, i, myalloc, PlyElement::name, PlyFile::nelems, PlyElement::nprops, NULL, PlyElement::num, PlyFile::num_comments, PlyFile::num_obj_info, PlyFile::other_elems, and PlyFile::version.