#include <Gl_Car.h>
Inheritance diagram for Vamos_Body::Gl_Car:


Public Member Functions | |
| Gl_Car (const Vamos_Geometry::Three_Vector &pos) | |
| virtual | ~Gl_Car () |
| virtual void | engine_sound (std::string file, double volume, double throttle_volume_factor, double engine_speed_volume_factor, double pitch) |
| virtual void | exterior_model (std::string file, double scale, const Vamos_Geometry::Three_Vector &translation, const Vamos_Geometry::Three_Vector &rotation) |
| virtual void | interior_model (std::string file, double scale, const Vamos_Geometry::Three_Vector &translation, const Vamos_Geometry::Three_Vector &rotation) |
| void | set_perspective (double aspect) |
| void | set_view (const Vamos_Geometry::Three_Vector &position, double field_of_view, double near_plane, double far_plane, double pan_angle) |
| void | add_rear_view (const Vamos_Geometry::Three_Vector &position, double width, double height, double direction, double field, double near_plane, double far_plane, std::string mask_file) |
| void | dashboard (Dashboard *dash) |
| void | draw (bool transform) |
| void | draw (bool transform, float opacity) |
| int | GetSoundSource () |
| int | GetTireSoundSource (int i) |
| void | draw_interior () |
| void | draw_rear_view (double aspect, int index) |
| void | make_rear_view_mask (int window_width, int window_height) |
| int | get_n_mirrors () const |
| void | view (double pan, const Vamos_Geometry::Three_Vector &view_position) |
| void | view (double pan) |
| Vamos_Geometry::Sample * | engine_sound () |
| TEXTURE_HANDLE * | shadow_texture () |
| virtual double | engine_pitch () |
| virtual double | engine_volume () |
| int | GetNumPaintjobs () |
| void | SetPaint (int pid) |
| void | SetReflectionTexture (TEXTURE_HANDLE *reftid) |
| JOEMODEL * | GetCollisionModel () |
Protected Member Functions | |
| void | draw_string (const std::string &str, double x, double y) |
Private Member Functions | |
| void | draw_dashboard () |
| void | draw_dashboard_extras () |
| void | transform_body () |
Private Attributes | |
| double | m_throttle_volume_factor |
| double | m_engine_speed_volume_factor |
| Vamos_Geometry::Sample * | mp_engine_sample |
| int | real_engine_sample |
| int | tire_source [4] |
| JOEMODEL | joeinterior |
| JOEMODEL | joeglass |
| JOEMODEL | joeexterior |
| JOEMODEL | joecollision |
| TEXTURE_HANDLE | shadowtex |
| Dashboard * | mp_dashboard |
| std::vector< Rear_View_Mirror * > | m_mirrors |
| double | m_near_plane |
| double | m_far_plane |
| int | num_paintjobs |
Definition at line 112 of file Gl_Car.h.
|
|
Definition at line 102 of file Gl_Car.cc. References num_paintjobs, tire_source, and verbose_output. |
|
|
Definition at line 118 of file Gl_Car.cc. References m_mirrors, mp_dashboard, mp_engine_sample, and verbose_output. |
|
||||||||||||||||||||||||||||||||||||
|
Reimplemented from Vamos_Body::Car. Definition at line 235 of file Gl_Car.cc. References m_mirrors. |
|
|
Implements Vamos_Body::Car. Definition at line 409 of file Gl_Car.cc. References mp_dashboard. |
|
||||||||||||
|
Definition at line 470 of file Gl_Car.cc. References Vamos_Body::Car::brakesetting, Vamos_Body::Wheel::draw(), JOEMODEL::DrawStatic(), joeexterior, joeglass, joeinterior, Vamos_Body::Car::m_wheels, UTILITY::SelectTU(), JOEMODEL::SetTU(), transform_body(), and utility. |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 198 of file Gl_Car.h. Referenced by VGUI::SpinningCar::Draw(). |
|
|
|
|
Reimplemented from Vamos_Body::Car. Definition at line 557 of file Gl_Car.cc. References draw_dashboard(). |
|
||||||||||||
|
Reimplemented from Vamos_Body::Car. Definition at line 400 of file Gl_Car.cc. References Vamos_Body::Rear_View_Mirror::get_center(), Vamos_Body::Rear_View_Mirror::get_direction(), m_mirrors, Vamos_Body::Rear_View_Mirror::set_view(), and view(). |
|
||||||||||||||||
|
Definition at line 584 of file Gl_Car.cc. References font, and FONT::Print(). Referenced by draw_dashboard_extras(). |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 746 of file Gl_Car.cc. References Vamos_Body::Car::engine(), and Vamos_Body::Engine::rotational_speed(). |
|
|
Implements Vamos_Body::Car. Definition at line 214 of file Gl_Car.h. References mp_engine_sample. |
|
||||||||||||||||||||||||
|
Implements Vamos_Body::Car. Definition at line 712 of file Gl_Car.cc. References SETTINGS::GetFullDataPath(), Vamos_Body::Car::m_car_file, m_engine_speed_volume_factor, m_throttle_volume_factor, mp_engine_sample, SOUNDMANAGER::NewSource(), real_engine_sample, SOUNDMANAGER::SetGain(), settings, sound, and tire_source. |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 752 of file Gl_Car.cc. References Vamos_Body::Car::engine(), m_engine_speed_volume_factor, m_throttle_volume_factor, Vamos_Body::Engine::rotational_speed(), and Vamos_Body::Engine::throttle(). |
|
||||||||||||||||||||
|
Implements Vamos_Body::Car. Definition at line 162 of file Gl_Car.cc. References JOEMODEL::AdditiveTexture(), UTILITY::FileExists(), SETTINGS::Get(), SETTINGS::GetFullDataPath(), joecollision, joeexterior, joeglass, JOEMODEL::Load(), TEXTURE_HANDLE::Load(), Vamos_Body::Car::m_car_file, num_paintjobs, settings, shadowtex, and utility. |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 207 of file Gl_Car.h. References m_mirrors. |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 226 of file Gl_Car.h. References joecollision. |
|
|
Definition at line 222 of file Gl_Car.h. References num_paintjobs. Referenced by VGUI::SpinningCar::LoadCar(). |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 758 of file Gl_Car.cc. References real_engine_sample. |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 763 of file Gl_Car.cc. References tire_source. |
|
||||||||||||||||||||
|
Implements Vamos_Body::Car. Definition at line 199 of file Gl_Car.cc. References SETTINGS::GetFullDataPath(), joeinterior, JOEMODEL::Load(), Vamos_Body::Car::m_car_file, and settings. |
|
||||||||||||
|
Reimplemented from Vamos_Body::Car. Definition at line 250 of file Gl_Car.cc. References Vamos_Body::Car::field_of_view(), Vamos_Body::Car::m_driver_view, m_mirrors, transform_body(), and view(). |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 216 of file Gl_Car.cc. References m_far_plane, Vamos_Body::Car::m_field_of_view, and m_near_plane. |
|
||||||||||||||||||||||||
|
Reimplemented from Vamos_Body::Car. Definition at line 222 of file Gl_Car.cc. References Vamos_Body::Car::m_driver_view, m_far_plane, Vamos_Body::Car::m_field_of_view, m_near_plane, and Vamos_Body::Car::m_pan_angle. |
|
|
Definition at line 768 of file Gl_Car.cc. References SETTINGS::GetFullDataPath(), joeexterior, Vamos_Body::Car::m_car_file, num_paintjobs, settings, and JOEMODEL::Texture(). Referenced by VGUI::SpinningCar::DecValueRelease(), VGUI::SpinningCar::IncValueRelease(), VGUI::SpinningCar::MouseRelease(), VGUI::SpinningCar::ResetValue(), and SelectCar(). |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 224 of file Gl_Car.h. References joeexterior, joeglass, and JOEMODEL::ReflectionTextureID(). Referenced by VGUI::SpinningCar::Draw(). |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 564 of file Gl_Car.cc. References shadowtex. |
|
|
Definition at line 419 of file Gl_Car.cc. References Vamos_Body::Frame::axis_angle(), Vamos_Body::Rigid_Body::center_of_mass(), QUATERNION::GetMat(), LightPosition, Vamos_Body::Car::m_chassis, Vamos_Body::Rigid_Body::position(), QUATERNION::ReturnConjugate(), QUATERNION::Rotate(), QUATERNION::RotateVec(), VERTEX::Set(), QUATERNION::SetAxisAngle(), VERTEX::x, VERTEX::y, and VERTEX::z. Referenced by draw(), and make_rear_view_mask(). |
|
|
Reimplemented from Vamos_Body::Car. Definition at line 211 of file Gl_Car.h. References Vamos_Body::Car::m_driver_view, and view(). |
|
||||||||||||
|
Reimplemented from Vamos_Body::Car. Definition at line 685 of file Gl_Car.cc. References Vamos_Body::Frame::axis_angle(), Vamos_Body::Rigid_Body::center_of_mass(), Vamos_Body::Car::m_chassis, Vamos_Body::Car::m_pan_key_control, Vamos_Body::Frame::rotate_out(), Vamos_Body::Frame::transform_out(), Vamos_Body::Key_Control::value(), and Vamos_Body::Car::view_position(). Referenced by draw_rear_view(), make_rear_view_mask(), and view(). |
|
|
Definition at line 127 of file Gl_Car.h. Referenced by exterior_model(), and GetCollisionModel(). |
|
|
Definition at line 126 of file Gl_Car.h. Referenced by draw(), exterior_model(), SetPaint(), and SetReflectionTexture(). |
|
|
Definition at line 125 of file Gl_Car.h. Referenced by draw(), exterior_model(), and SetReflectionTexture(). |
|
|
Definition at line 124 of file Gl_Car.h. Referenced by draw(), and interior_model(). |
|
|
Definition at line 115 of file Gl_Car.h. Referenced by engine_sound(), and engine_volume(). |
|
|
Definition at line 137 of file Gl_Car.h. Referenced by set_perspective(), and set_view(). |
|
|
Definition at line 133 of file Gl_Car.h. Referenced by add_rear_view(), draw_rear_view(), get_n_mirrors(), make_rear_view_mask(), and ~Gl_Car(). |
|
|
Definition at line 136 of file Gl_Car.h. Referenced by set_perspective(), and set_view(). |
|
|
Definition at line 114 of file Gl_Car.h. Referenced by engine_sound(), and engine_volume(). |
|
|
Definition at line 131 of file Gl_Car.h. Referenced by dashboard(), draw_dashboard(), and ~Gl_Car(). |
|
|
Definition at line 118 of file Gl_Car.h. Referenced by engine_sound(), and ~Gl_Car(). |
|
|
Definition at line 148 of file Gl_Car.h. Referenced by exterior_model(), GetNumPaintjobs(), Gl_Car(), and SetPaint(). |
|
|
Definition at line 120 of file Gl_Car.h. Referenced by engine_sound(), and GetSoundSource(). |
|
|
Definition at line 128 of file Gl_Car.h. Referenced by exterior_model(), and shadow_texture(). |
|
|
Definition at line 121 of file Gl_Car.h. Referenced by engine_sound(), GetTireSoundSource(), and Gl_Car(). |
1.4.6