#include <cLwoSurface.h>
Public Types | |
enum | Flags { F_rgb = 0x0001, F_diffuse = 0x0002, F_luminosity = 0x0004, F_specular = 0x0008, F_reflection = 0x0010, F_transparency = 0x0020, F_gloss = 0x0040, F_translucency = 0x0080, F_smooth_angle = 0x0100, F_backface = 0x0200 } |
Public Member Functions | |
CLwoSurface (LwoToEggConverter *converter, const LwoSurface *surface) | |
~CLwoSurface () | |
INLINE const string & | get_name () const |
void | apply_properties (EggPrimitive *egg_prim, vector_PT_EggVertex &egg_vertices, float &smooth_angle) |
bool | check_texture () |
bool | check_material () |
INLINE bool | has_named_uvs () const |
INLINE const string & | get_uv_name () const |
CPT (LwoSurface) _surface | |
Public Attributes | |
int | _flags |
RGBColorf | _rgb |
float | _diffuse |
float | _luminosity |
float | _specular |
float | _reflection |
float | _transparency |
float | _gloss |
float | _translucency |
float | _smooth_angle |
bool | _backface |
Colorf | _color |
Colorf | _diffuse_color |
LwoToEggConverter * | _converter |
bool | _checked_material |
PT_EggMaterial | _egg_material |
bool | _checked_texture |
PT_EggTexture | _egg_texture |
CLwoSurfaceBlock * | _block |
Private Member Functions | |
void | generate_uvs (vector_PT_EggVertex &egg_vertices) |
LPoint2d | map_planar (const LPoint3d &pos, const LPoint3d ¢roid) const |
LPoint2d | map_spherical (const LPoint3d &pos, const LPoint3d ¢roid) const |
LPoint2d | map_cylindrical (const LPoint3d &pos, const LPoint3d ¢roid) const |
LPoint2d | map_cubic (const LPoint3d &pos, const LPoint3d ¢roid) const |
Private Attributes | |
LPoint2d(CLwoSurface::* | _map_uvs )(const LPoint3d &pos, const LPoint3d ¢roid) const |
|
Definition at line 63 of file cLwoSurface.h. |
|
|
Definition at line 157 of file cLwoSurface.cxx. |
|
Definition at line 174 of file cLwoSurface.cxx. References _backface, _converter, _diffuse_color, _egg_material, _egg_texture, _flags, _smooth_angle, check_material(), check_texture(), F_backface, F_smooth_angle, generate_uvs(), LwoToEggConverter::get_surface(), NULL, EggPrimitive::set_bface_flag(), EggAttributes::set_color(), EggPrimitive::set_material(), and EggPrimitive::set_texture(). Referenced by CLwoPolygons::make_faces(). |
|
Definition at line 301 of file cLwoSurface.cxx. References _checked_material, _color, _converter, _diffuse, _diffuse_color, _egg_material, _flags, _gloss, _luminosity, LwoToEggConverter::_make_materials, _specular, Colorf, F_diffuse, F_gloss, F_luminosity, F_specular, get_name(), and NULL. Referenced by apply_properties(). |
|
|
|
|
Definition at line 361 of file cLwoSurface.cxx. References _block, CLwoSurfaceBlock::_inv_transform, _map_uvs, EggVertex::get_pos3(), NULL, and EggAttributes::set_uv(). Referenced by apply_properties(). |
|
Referenced by check_material(), and LwoToEggConverter::collect_lwo(). |
|
Referenced by CLwoPolygons::make_faces(). |
|
Referenced by CLwoPolygons::make_faces(). |
|
Definition at line 499 of file cLwoSurface.cxx. Referenced by check_texture(). |
|
Definition at line 463 of file cLwoSurface.cxx. References _block, CLwoSurfaceBlock::_w_repeat, MathNumbers::pi, v, and zero. Referenced by check_texture(). |
|
Definition at line 396 of file cLwoSurface.cxx. References v. Referenced by check_texture(). |
|
Definition at line 412 of file cLwoSurface.cxx. References _block, CLwoSurfaceBlock::_h_repeat, CLwoSurfaceBlock::_w_repeat, MathNumbers::pi, v, and zero. Referenced by check_texture(). |
|
Definition at line 86 of file cLwoSurface.h. Referenced by apply_properties(), and CLwoSurface(). |
|
Definition at line 100 of file cLwoSurface.h. Referenced by check_texture(), CLwoSurface(), generate_uvs(), map_cylindrical(), map_spherical(), and ~CLwoSurface(). |
|
Definition at line 94 of file cLwoSurface.h. Referenced by check_material(), and CLwoSurface(). |
|
Definition at line 97 of file cLwoSurface.h. Referenced by check_texture(), and CLwoSurface(). |
|
Definition at line 88 of file cLwoSurface.h. Referenced by check_material(), check_texture(), and CLwoSurface(). |
|
Definition at line 91 of file cLwoSurface.h. Referenced by apply_properties(), check_material(), check_texture(), and CLwoSurface(). |
|
Definition at line 78 of file cLwoSurface.h. Referenced by check_material(), and CLwoSurface(). |
|
Definition at line 89 of file cLwoSurface.h. Referenced by apply_properties(), check_material(), and CLwoSurface(). |
|
Definition at line 95 of file cLwoSurface.h. Referenced by apply_properties(), and check_material(). |
|
Definition at line 98 of file cLwoSurface.h. Referenced by apply_properties(), and check_texture(). |
|
Definition at line 76 of file cLwoSurface.h. Referenced by apply_properties(), check_material(), and CLwoSurface(). |
|
Definition at line 83 of file cLwoSurface.h. Referenced by check_material(), and CLwoSurface(). |
|
Definition at line 79 of file cLwoSurface.h. Referenced by check_material(), and CLwoSurface(). |
|
Referenced by check_texture(), CLwoSurface(), and generate_uvs(). |
|
Definition at line 81 of file cLwoSurface.h. Referenced by CLwoSurface(). |
|
Definition at line 77 of file cLwoSurface.h. Referenced by CLwoSurface(). |
|
Definition at line 85 of file cLwoSurface.h. Referenced by apply_properties(), and CLwoSurface(). |
|
Definition at line 80 of file cLwoSurface.h. Referenced by check_material(), and CLwoSurface(). |
|
Definition at line 84 of file cLwoSurface.h. Referenced by CLwoSurface(). |
|
Definition at line 82 of file cLwoSurface.h. Referenced by CLwoSurface(). |