Added getters for auto_flatten mode, near and far (i.e., get_flatten_mode, get_near, get_far).
This commit is contained in:
parent
0899f97702
commit
4ec660096d
|
|
@ -1,5 +1,7 @@
|
|||
// Filename: geoMipTerrain.I
|
||||
// Created by: pro-rsoft (29jun07)
|
||||
// Modified by: CMU ETC Summer 2010 team (03aug10) (added getters
|
||||
// for _auto_flatten, _near, _far).
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
|
@ -337,6 +339,39 @@ set_far(double input_far) {
|
|||
_far = input_far;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeoMipTerrain::get_far
|
||||
// Access: Published
|
||||
// Description: Returns the far LOD distance in the terrain coordinate
|
||||
// space
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE double GeoMipTerrain::
|
||||
get_far() {
|
||||
return _far;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeoMipTerrain::get_near
|
||||
// Access: Published
|
||||
// Description: Returns the near LOD distance in the terrain coordinate
|
||||
// space
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE double GeoMipTerrain::
|
||||
get_near() {
|
||||
return _near;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeoMipTerrain::get_flatten_mode
|
||||
// Access: Published
|
||||
// Description: Returns the automatic-flatten mode (e.g., off,
|
||||
// flatten_light, flatten_medium, or flatten_strong)
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE int GeoMipTerrain::
|
||||
get_flatten_mode() {
|
||||
return _auto_flatten;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: GeoMipTerrain::get_block_node_path
|
||||
// Access: Published
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
// Filename: geoMipTerrain.h
|
||||
// Created by: pro-rsoft (29jun07)
|
||||
// Modified by: CMU ETC Summer 2010 team (03aug10) (added
|
||||
// get_flatten_mode(), get_near(), get_far() ).
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
|
@ -104,7 +106,10 @@ PUBLISHED:
|
|||
INLINE LVecBase2f get_block_from_pos(double x, double y);
|
||||
INLINE void set_border_stitching(bool stitching);
|
||||
INLINE bool get_border_stitching();
|
||||
|
||||
INLINE double get_far();
|
||||
INLINE double get_near();
|
||||
INLINE int get_flatten_mode();
|
||||
|
||||
PNMImage make_slope_image();
|
||||
void generate();
|
||||
bool update();
|
||||
|
|
|
|||
Loading…
Reference in New Issue