Skip to content
Snippets Groups Projects
Commit 5299bfff authored by Stuart Layton's avatar Stuart Layton
Browse files

added code that attempts to disable anti-aliasing for the spike plots

parent 745b03e5
No related branches found
No related tags found
No related merge requests found
......@@ -363,6 +363,13 @@ void SpikeDisplayCanvas::zoomPlot(int p, int c, bool in){
plots[p].zoom(c, in);
}
void SpikeDisplayCanvas::disableAntiAliasing(){
glDisable(GL_LINE_SMOOTH);
glDisable(GL_POINT_SMOOTH);
glDisable(GL_POLYGON_SMOOTH);
}
// void SpikeDisplayCanvas::resized()
// {
// //screenBuffer = new AudioSampleBuffer(nChans, getWidth());
......
......@@ -103,6 +103,7 @@ private:
void initializeSpikePlots();
void repositionSpikePlots();
void disableAntiAliasing();
void canvasWasResized();
void mouseDownInCanvas(const MouseEvent& e);
// void mouseDrag(const MouseEvent& e);
......
......@@ -128,7 +128,7 @@ void ProjectionAxes::plotOldSpikes(bool allSpikes){
// std::cout<<"\tUpdating texture with all spikes: "<< stopIdx - startIdx + 1 <<std::endl;
glColor3f(1.0, 1.0, 1.0);
glPointSize(1);
glPointSize(2);
glBegin(GL_POINTS);
for (int i=startIdx; i<=stopIdx; i++)
glVertex2i(ampBuffer[0][i], ampBuffer[1][i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment