DrawingContext::Transform Class Reference

List of all members.

Public Member Functions

 Transform ()
Vector apply (const Vector &v) const

Public Attributes

Vector translation
DrawingEffect drawing_effect
float alpha

Detailed Description

Definition at line 137 of file drawing_context.hpp.


Constructor & Destructor Documentation

DrawingContext::Transform::Transform (  )  [inline]

Definition at line 144 of file drawing_context.hpp.

00144                 :
00145       translation(),
00146       drawing_effect(NO_EFFECT), 
00147       alpha(1.0f)
00148     { }


Member Function Documentation

Vector DrawingContext::Transform::apply ( const Vector v  )  const [inline]

Definition at line 150 of file drawing_context.hpp.

References translation.

Referenced by DrawingContext::draw_filled_rect(), DrawingContext::draw_inverse_ellipse(), DrawingContext::draw_surface(), DrawingContext::draw_surface_part(), DrawingContext::draw_text(), and DrawingContext::get_light().

00151     {
00152       return v - translation;
00153     }


Member Data Documentation

Vector DrawingContext::Transform::translation

Definition at line 140 of file drawing_context.hpp.

Referenced by apply(), DrawingContext::get_translation(), and DrawingContext::set_translation().

DrawingEffect DrawingContext::Transform::drawing_effect

Definition at line 141 of file drawing_context.hpp.

Referenced by DrawingContext::draw_filled_rect(), DrawingContext::draw_gradient(), DrawingContext::draw_inverse_ellipse(), DrawingContext::draw_surface(), DrawingContext::draw_surface_part(), DrawingContext::draw_text(), DrawingContext::get_drawing_effect(), and DrawingContext::set_drawing_effect().

float DrawingContext::Transform::alpha

Definition at line 142 of file drawing_context.hpp.

Referenced by DrawingContext::draw_filled_rect(), DrawingContext::draw_gradient(), DrawingContext::draw_inverse_ellipse(), DrawingContext::draw_surface(), DrawingContext::draw_surface_part(), DrawingContext::draw_text(), DrawingContext::get_alpha(), and DrawingContext::set_alpha().


The documentation for this class was generated from the following file:
Generated on Mon Jun 9 03:38:30 2014 for SuperTux by  doxygen 1.5.1