diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-02 21:47:06 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2020-06-02 21:47:06 -0300 |
commit | 113a35d0fe8938973fa1c100b77f456ed250e61b (patch) | |
tree | 586d1c3113082cbb2b92cd46c3c96a25a0e75e67 /Project/SyncMotor.cpp | |
parent | 6ce2bdcf85dffee6b6ef7b95b888b8b96372a3d6 (diff) | |
download | PSP.git-113a35d0fe8938973fa1c100b77f456ed250e61b.tar.gz PSP.git-113a35d0fe8938973fa1c100b77f456ed250e61b.tar.xz PSP.git-113a35d0fe8938973fa1c100b77f456ed250e61b.zip |
OpenGL bugfixes and wxGC port alternative init
OpenGL major bugfixes;
Device context port alternative to OpenGL code init (WorkspaceDC). Some machines don't support OpenGL 3+;
Fixed some issues with MSVC.
Diffstat (limited to 'Project/SyncMotor.cpp')
-rw-r--r-- | Project/SyncMotor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Project/SyncMotor.cpp b/Project/SyncMotor.cpp index 8283a25..716a432 100644 --- a/Project/SyncMotor.cpp +++ b/Project/SyncMotor.cpp @@ -22,6 +22,10 @@ SyncMotor::SyncMotor() : Machines() {} SyncMotor::SyncMotor(wxString name) : Machines() { m_electricalData.name = name; } SyncMotor::~SyncMotor() {} void SyncMotor::DrawSymbol() const { DrawArc(m_position, 12, 30, 330, 10, GL_LINE_STRIP); } +void SyncMotor::DrawDCSymbol(wxGraphicsContext* gc) const +{ + DrawDCArc(m_position, 12, 30, 330, 10, gc); +} bool SyncMotor::GetContextMenu(wxMenu& menu) { menu.Append(ID_EDIT_ELEMENT, _("Edit Synchronous Condenser")); |