diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-07-30 00:29:03 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2016-07-30 00:29:03 -0300 |
commit | 3a246308dcd76f70a1b6c3e6b08f0d597b255dba (patch) | |
tree | 62f42b83f39ffb0b32db5c658e0e1da428b8e6c6 /Project/Bus.cpp | |
parent | d1b893e6757270b0f246a7657d7b6701dcea3b87 (diff) | |
download | PSP.git-3a246308dcd76f70a1b6c3e6b08f0d597b255dba.tar.gz PSP.git-3a246308dcd76f70a1b6c3e6b08f0d597b255dba.tar.xz PSP.git-3a246308dcd76f70a1b6c3e6b08f0d597b255dba.zip |
Adding the basics graphics elements
The base is done, bus under contruction
Diffstat (limited to 'Project/Bus.cpp')
-rw-r--r-- | Project/Bus.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Project/Bus.cpp b/Project/Bus.cpp new file mode 100644 index 0000000..b598f40 --- /dev/null +++ b/Project/Bus.cpp @@ -0,0 +1,19 @@ +#include "Bus.h" + +Bus::Bus(wxPoint2DDouble position) : Element() +{ + m_width = 100.0; + m_height = 5.0; + SetPosition(position); +} +Bus::~Bus() {} + +void Bus::Draw(wxPoint2DDouble translation, double scale) const +{ + glColor4d(0.0, 0.0, 1.0, 1.0); + DrawRectangle(m_position, m_width, m_height); +} +bool Bus::Contains(wxPoint2DDouble position) const { return false; } +int Bus::PickboxContains(wxPoint2DDouble position) const { return 0; } +wxCursor Bus::GetBestPickboxCursor() const { return wxCURSOR_ARROW; } +void Bus::MovePickbox(wxPoint2DDouble position, int pickboxID) {} |