#include <3dsload.h>
Diagrama de colaboración para ESCENA_3DS:
Métodos públicos | |
ESCENA_3DS (char *archivo) | |
~ESCENA_3DS () | |
BOOLEAN | leer (FILE *_fd) |
Este metodo lee informacion de un archivo binario en formato 3DS de autodesk, y la almacena en las estructuras de datos temporales de la clase ESCENA_3DS para su posterior exportacion a objetos standard AQUYNZA. | |
BOOLEAN | muerta (void) |
Métodos privados | |
void | leer_trozo_MAIN (DWORD p) |
`p` es la posicion del archivo actual en donde se acaban los datos... | |
void | leer_trozo_OBJMESH (DWORD p) |
Este metodo lee la "informacion de editor" del formato 3DS, que contiene luces, camaras, materiales y geometrias basadas en MESHes de triangulos. | |
void | leer_trozo_OBJBLOCK (DWORD p) |
Reads in object blocks, which are cameras, meshes, or lights; this code only supports meshes and ignores the rest. | |
void | leer_trozo_MATERIAL (DWORD p) |
void | leer_trozo_TRIMESH (DWORD p, char *name) |
Eats a triangle mesh, which is a combination of XYZ vertices, faces, and bindings of material to faces. | |
void | leer_trozo_SHADING (DWORD p, COLOR *rgb) |
void | leer_trozo_MATNAME (DWORD p, MATERIAL_3DS *mat) |
void | leer_trozo_DOUBLESIDED (int *material_doublesided) |
void | leer_trozo_TRANSPARENCY (DWORD p, FLOAT32 *alpha) |
void | leer_trozo_TEXTURE (DWORD p, TEXTURE_DATA *texture) |
void | leer_trozo_RGBByte (COLOR *rgb) |
void | leer_trozo_RGBFloat (COLOR *rgb) |
void | leer_trozo_AMOUNT (WORD *amount) |
void | leer_trozo_MAPFILENAME (DWORD p, TEXTURE_DATA *texture) |
MESH_3DS * | anx_mesh (void) |
MATERIAL_3DS * | anx_material (void) |
Atributos privados | |
ARREGLO< MESH_3DS > | arr_mesh |
ARREGLO< MATERIAL_3DS > | arr_material |
BOOLEAN | flag_caras_dobles |
BOOLEAN | flag_alpha_blending |
BOOLEAN | flag_material_por_defecto |
BOOLEAN | _muerta |
char * | _nombre_de_archivo |
FILE * | fd |
Amigas | |
ESCENA_3DS * | HRead3dsScene (DWORD size) |
void | importar_3DS (ESCENA_3DS *Scene, MESH *Geometria, BOOLEAN *b, double *Escala_optima) |
Recibe una estructura de datos que contiene informacion cargada desde un archivo en formato "3ds" de Autodesk, y escribe la informacion de geometria en la variable `(*Geometria)`. |
|
Definición en la línea 767 del archivo 3dsload.C. References _muerta, _nombre_de_archivo, fd, flag_alpha_blending, flag_caras_dobles, flag_material_por_defecto, leer(), y ULTIMO_archivo. |
Here is the call graph for this function:
|
Definición en la línea 806 del archivo 3dsload.C. References arr_material, arr_mesh, ARREGLO< MATERIAL_3DS >::elim(), ARREGLO< MESH_3DS >::elim(), MESH_3DS::facelist, MATERIAL_ARR::faces, MESH_3DS::jed_arr, MESH_3DS::jed_tam, MESH_3DS::maplist, ARREGLO< MESH_3DS >::tam(), y MESH_3DS::vertices_arr. |
Here is the call graph for this function:
|
Definición en la línea 888 del archivo 3dsload.C. References ARREGLO< MATERIAL_3DS >::anx(), arr_material, y ARREGLO< MATERIAL_3DS >::tam(). Referenciado por leer_trozo_MATERIAL(). |
Here is the call graph for this function:
|
Definición en la línea 835 del archivo 3dsload.C. References ARREGLO< MESH_3DS >::anx(), arr_mesh, fd, MESH_3DS::fd, y ARREGLO< MESH_3DS >::tam(). Referenciado por leer_trozo_TRIMESH(). |
Here is the call graph for this function:
|
Este metodo lee informacion de un archivo binario en formato 3DS de autodesk, y la almacena en las estructuras de datos temporales de la clase ESCENA_3DS para su posterior exportacion a objetos standard AQUYNZA.
Definición en la línea 908 del archivo 3dsload.C. References CHUNK3DS_MAIN, dgetpos(), DWORD, fd, leer_trozo_MAIN(), UWORD, y WORD. Referenciado por ESCENA_3DS(). |
Here is the call graph for this function:
|
Definición en la línea 351 del archivo 3dsload.C. Referenciado por leer_trozo_TRANSPARENCY(). |
|
Definición en la línea 441 del archivo 3dsload.C. References flag_caras_dobles. Referenciado por leer_trozo_MATERIAL(). |
|
`p` es la posicion del archivo actual en donde se acaban los datos...
Definición en la línea 690 del archivo 3dsload.C. References BYTE, CHUNK3DS_KEYFRAMER, CHUNK3DS_OBJMESH, dgetpos(), dsetpos(), DWORD, fd, leer_trozo_OBJMESH(), y UWORD. Referenciado por leer(). |
Here is the call graph for this function:
|
Definición en la línea 332 del archivo 3dsload.C. References fd, y TEXTURE_DATA::texturename. Referenciado por leer_trozo_TEXTURE(). |
|
Definición en la línea 550 del archivo 3dsload.C. References MATERIAL_3DS::alpha, MATERIAL_3DS::ambient, anx_material(), CHUNK3DS_AMBIENT, CHUNK3DS_DIFFUSE, CHUNK3DS_DOUBLESIDED, CHUNK3DS_MATNAME, CHUNK3DS_SPECULAR, CHUNK3DS_TEXTURE, CHUNK3DS_TRANSPARENCY, dgetpos(), MATERIAL_3DS::diffuse, MATERIAL_3DS::doublesided, dsetpos(), DWORD, fd, leer_trozo_DOUBLESIDED(), leer_trozo_MATNAME(), leer_trozo_SHADING(), leer_trozo_TEXTURE(), leer_trozo_TRANSPARENCY(), MATERIAL_3DS::specular, y MATERIAL_3DS::texture. Referenciado por leer_trozo_OBJMESH(). |
Here is the call graph for this function:
|
Definición en la línea 456 del archivo 3dsload.C. References fd, y MATERIAL_3DS::name. Referenciado por leer_trozo_MATERIAL(). |
|
Reads in object blocks, which are cameras, meshes, or lights; this code only supports meshes and ignores the rest.
Definición en la línea 595 del archivo 3dsload.C. References CHUNK3DS_TRIMESH, dgetpos(), dsetpos(), DWORD, fd, leer_trozo_TRIMESH(), y UWORD. Referenciado por leer_trozo_OBJMESH(). |
Here is the call graph for this function:
|
Este metodo lee la "informacion de editor" del formato 3DS, que contiene luces, camaras, materiales y geometrias basadas en MESHes de triangulos. OJO: El nombre "OBJMESH" no es adecuado... esto es en realidad algo asi como la "ESCENA" que tiene un 3DS... Definición en la línea 642 del archivo 3dsload.C. References CHUNK3DS_AMBCOLOR, CHUNK3DS_BKGCOLOR, CHUNK3DS_MATERIAL, CHUNK3DS_OBJBLOCK, dgetpos(), dsetpos(), DWORD, fd, leer_trozo_MATERIAL(), leer_trozo_OBJBLOCK(), y UWORD. Referenciado por leer_trozo_MAIN(). |
Here is the call graph for this function:
|
Definición en la línea 360 del archivo 3dsload.C. References COLOR::b, BYTE, fd, COLOR::g, y COLOR::r. Referenciado por leer_trozo_SHADING(). |
|
Definición en la línea 378 del archivo 3dsload.C. References COLOR::b, fd, COLOR::g, y COLOR::r. Referenciado por leer_trozo_SHADING(). |
|
Definición en la línea 476 del archivo 3dsload.C. References CHUNK3DS_RGB1, CHUNK3DS_RGB2, dgetpos(), dsetpos(), DWORD, fd, leer_trozo_RGBByte(), leer_trozo_RGBFloat(), y UWORD. Referenciado por leer_trozo_MATERIAL(). |
Here is the call graph for this function:
|
Definición en la línea 395 del archivo 3dsload.C. References CHUNK3DS_MAPFILENAME, dgetpos(), dsetpos(), DWORD, fd, leer_trozo_MAPFILENAME(), y UWORD. Referenciado por leer_trozo_MATERIAL(). |
Here is the call graph for this function:
|
Definición en la línea 414 del archivo 3dsload.C. References CHUNK3DS_AMOUNT, dgetpos(), dsetpos(), DWORD, fd, flag_alpha_blending, leer_trozo_AMOUNT(), UWORD, y WORD. Referenciado por leer_trozo_MATERIAL(). |
Here is the call graph for this function:
|
Eats a triangle mesh, which is a combination of XYZ vertices, faces, and bindings of material to faces.
Definición en la línea 494 del archivo 3dsload.C. References anx_mesh(), MESH_3DS::asignar_material_por_defecto(), BOOLEAN, CHUNK3DS_FACELIST, CHUNK3DS_FACEMAT, CHUNK3DS_MAPLIST, CHUNK3DS_TRMATRIX, CHUNK3DS_VERTLIST, dgetpos(), dsetpos(), DWORD, fd, flag_material_por_defecto, MESH_3DS::leer_trozo_FACELIST(), MESH_3DS::leer_trozo_FACEMAT(), MESH_3DS::leer_trozo_MAPLIST(), MESH_3DS::leer_trozo_TRMATRIX(), MESH_3DS::leer_trozo_VERTLIST(), MESH_3DS::name, UWORD, y WORD. Referenciado por leer_trozo_OBJBLOCK(). |
Here is the call graph for this function:
|
Definición en la línea 832 del archivo 3dsload.C. References _muerta, y BOOLEAN. Referenciado por leer_geometria(). |
|
|
|
Recibe una estructura de datos que contiene informacion cargada desde un archivo en formato "3ds" de Autodesk, y escribe la informacion de geometria en la variable `(*Geometria)`. Tambien indica en la variable "(*flag_blend)" si el modelo posee elementos transparentes o no. OJO: En `*Escala_optima` se escribe un valor recomendado de escala. |
|
Definición en la línea 204 del archivo 3dsload.h. Referenciado por ESCENA_3DS(), y muerta(). |
|
Definición en la línea 205 del archivo 3dsload.h. Referenciado por ESCENA_3DS(), y importar_3DS(). |
|
Definición en la línea 198 del archivo 3dsload.h. Referenciado por anx_material(), importar_3DS(), y ~ESCENA_3DS(). |
|
Definición en la línea 197 del archivo 3dsload.h. Referenciado por anx_mesh(), importar_3DS(), y ~ESCENA_3DS(). |
|
Definición en la línea 206 del archivo 3dsload.h. Referenciado por anx_mesh(), ESCENA_3DS(), leer(), leer_trozo_AMOUNT(), leer_trozo_MAIN(), leer_trozo_MAPFILENAME(), leer_trozo_MATERIAL(), leer_trozo_MATNAME(), leer_trozo_OBJBLOCK(), leer_trozo_OBJMESH(), leer_trozo_RGBByte(), leer_trozo_RGBFloat(), leer_trozo_SHADING(), leer_trozo_TEXTURE(), leer_trozo_TRANSPARENCY(), y leer_trozo_TRIMESH(). |
|
Definición en la línea 201 del archivo 3dsload.h. Referenciado por ESCENA_3DS(), importar_3DS(), y leer_trozo_TRANSPARENCY(). |
|
Definición en la línea 200 del archivo 3dsload.h. Referenciado por ESCENA_3DS(), y leer_trozo_DOUBLESIDED(). |
|
Definición en la línea 202 del archivo 3dsload.h. Referenciado por ESCENA_3DS(), importar_3DS(), y leer_trozo_TRIMESH(). |