2.3 Chart Snapshot


#1

Will the code for snapshotting a chart be updated to work with 2.3?  Right now I am getting errors at the linking stage for referencing _colorRenderBuffer and a few other iVars.

Thanks


#2

Hi jmonroe,

Changes to the chart engine in the latest version of ShinobiCharts mean the snapshot code no longer can access the GL.

We’ll be looking into alternatives.

Apologies for any inconvenience.

Kind Regards,
Andrew Polkinghorn


#3

Hi Andrew,

I’d like to voice my vote for screenshot support as well. One of my apps that uses the Shinobi Charts, the screenshot feature is a major feature/selling point. Hopefully you’ll be able to find a way to add this back in.

Keep up the great work!

Wes


#4

Hi Guys,

Good News!

There is a fix for this issue.

Replace the following variables in the SChartGLView+Screenshot.h:

  1. Swap
    _context

for
[self getContext]; 

  1. Swap
    _colorRenderBuffer

for
[self getColorRenderBuffer]; 

  1. Swap
    _frameBuffer

for
[self getFrameBuffer]; 

The Snapshot code is going to be updated soon and will include this fix along with other added features.

Let me know if you have any issues.

Kind Regards,
Andrew Polkinghorn


#5

Thanks Andrew! Worked perfectly for me.

Wes


#6

Hm, unfortunately, the 3rd point gives me this build error: 

SChartGLView+Screenshot.h:31:40: No visible @interface for ‘SChartGLView’ declares the selector ‘getFrameBuffer’

What I am doing wrong?

Edit: Forgot it, only the method name from 3rd point is wrong… getFramebuffer instead of getFrameBuffer