Back to index

extremetuxracer  0.5beta
Public Member Functions | Public Attributes
HeightMapInfo Struct Reference

#include <quadtree.h>

List of all members.

Public Member Functions

float Sample (int x, int z) const

Public Attributes

float * Data
int XOrigin
int ZOrigin
int XSize
int ZSize
int RowWidth
int Scale

Detailed Description

Definition at line 29 of file quadtree.h.


Member Function Documentation

float HeightMapInfo::Sample ( int  x,
int  z 
) const [inline]

Definition at line 37 of file quadtree.h.

                                              {
              if ( x >= XSize ) {
                     x = XSize - 1;
              }
              if ( z >= ZSize ) {
                     z = ZSize - 1;
              }
              return Data[ x + z * RowWidth ];
       }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 31 of file quadtree.h.

Definition at line 34 of file quadtree.h.

Definition at line 35 of file quadtree.h.

Definition at line 32 of file quadtree.h.

Definition at line 33 of file quadtree.h.

Definition at line 32 of file quadtree.h.

Definition at line 33 of file quadtree.h.


The documentation for this struct was generated from the following file: