Back to index

extremetuxracer  0.5beta
Public Member Functions | Public Attributes
pp::ModelObject Class Reference

#include <model_ac.h>

Collaboration diagram for pp::ModelObject:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ModelObject ()
 ~ModelObject ()

Public Attributes

pp::Vec3d loc
std::string name
std::string data
std::string url
pp::Vertexvertices
int num_vert
pp::Surfacesurfaces
int num_surf
double texture_repeat_x
double texture_repeat_y
double texture_offset_x
double texture_offset_y
int num_kids
pp::ModelObject ** kids
double matrix [9]
int type
int texture

Detailed Description

Definition at line 70 of file model_ac.h.


Constructor & Destructor Documentation

Definition at line 66 of file model_ac.cpp.

{
    loc.x = loc.y = loc.z = 0.0;
    vertices = NULL;
    num_vert = 0;
    surfaces = NULL;
    num_surf = 0;
    texture = -1;
    texture_repeat_x = texture_repeat_y = 1.0;
    texture_offset_x = texture_offset_y = 0.0;
    kids = NULL;
    num_kids = 0;
    matrix[0] = 1;
    matrix[1] = 0;
    matrix[2] = 0;
    matrix[3] = 0;
    matrix[4] = 1;
    matrix[5] = 0;
    matrix[6] = 0;
    matrix[7] = 0;
    matrix[8] = 1;
}

Definition at line 89 of file model_ac.cpp.

{
       for (int i = 0; i < num_kids; i++){
              delete kids[i];
       }

       if (vertices)
              free(vertices);

       for (int i = 0; i < num_surf; i++){
              delete(surfaces[i].vertices);
              delete(surfaces[i].uvs);
       }

       if (surfaces)
              delete(surfaces);
}

Member Data Documentation

std::string pp::ModelObject::data

Definition at line 78 of file model_ac.h.

Definition at line 89 of file model_ac.h.

Definition at line 76 of file model_ac.h.

Definition at line 90 of file model_ac.h.

std::string pp::ModelObject::name

Definition at line 77 of file model_ac.h.

Definition at line 88 of file model_ac.h.

Definition at line 84 of file model_ac.h.

Definition at line 81 of file model_ac.h.

Definition at line 83 of file model_ac.h.

Definition at line 92 of file model_ac.h.

Definition at line 86 of file model_ac.h.

Definition at line 86 of file model_ac.h.

Definition at line 85 of file model_ac.h.

Definition at line 85 of file model_ac.h.

Definition at line 91 of file model_ac.h.

std::string pp::ModelObject::url

Definition at line 79 of file model_ac.h.

Definition at line 80 of file model_ac.h.


The documentation for this class was generated from the following files: