Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-11-2013, 14:35   #1
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
Plugin coding question

All:

I apologize if this isn't the appropriate place to make this request. If it isn't, please direct me to the correct place.

I am in the early stages of development of another plugin, and I have a need to display an image on the screen. I have a test working just fine with the non-OpenGL method:

::RenderOverlay(wxDC &dc, Plugin_ViewPort *vp)
{
wxPoint *pt = new wxPoint();
pt->x = 50;
pt->y = 200;
dc.DrawBitmap(*m_overlayImage, *pt, true);
}

However, I can't figure out how to implement the OpenGL version:
::RenderGLOverlay(wxGLContext *pcontext, Plugin_ViewPort *vp)
{
//TODO: OpenGL Rendering
}

I've tried to google, but I'm not quite sure what the proper search terms are.

Ideas? Or does anyone have a simple example that I can follow?
__________________
mattkab is offline   Reply With Quote
Old 07-11-2013, 14:52   #2
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Plugin coding question

mattkab...
Something like https://github.com/seandepagnier/wea...ax_pi.cpp#L221 ?

Pavel
__________________
nohal is offline   Reply With Quote
Old 07-11-2013, 15:00   #3
Registered User

Join Date: Jul 2013
Location: Washington State, USA
Boat: 1983 Fu Hwa Seahorse
Posts: 86
Re: Plugin coding question

Thanks Pavel, that got me started.

Something like this is exactly what I was looking for:
https://github.com/seandepagnier/wea...Image.cpp#L555
__________________
mattkab is offline   Reply With Quote
Reply

Tags
plug

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 20:41.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.