

Definition at line 15 of file RopeDecor.h.
Public Member Functions | |
| RopeDecor (const Cube *model1, const Cube *model2, const V2 &shift1, const V2 &shift2) | |
| virtual void | drawOnScreen (const View *view, SDL_Surface *screen) |
| Draw line from one model to second model. | |
|
||||||||||||||||||||
|
Definition at line 18 of file RopeDecor.cpp. 00020 : m_shift1(shift1), m_shift2(shift2)
00021 {
00022 m_model1 = model1;
00023 m_model2 = model2;
00024 }
|
|
||||||||||||
|
Draw line from one model to second model.
Implements Decor. Definition at line 30 of file RopeDecor.cpp. 00031 {
00032 V2 loc1 = view->getScreenPos(m_model1).plus(m_shift1);
00033 V2 loc2 = view->getScreenPos(m_model2).plus(m_shift2);
00034
00035 //NOTE: steel color
00036 Uint32 colorRGBA = 0x30404eff;
00037 lineColor(screen, loc1.getX(), loc1.getY(),
00038 loc2.getX(), loc2.getY(), colorRGBA);
00039 }
|
1.4.2