Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 07-11-2013, 13: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, 13:52   #2
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
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, 14: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 Search this Thread
Search this Thread:

Advanced Search
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


Advertise Here


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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.