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

minor updates to the code

parent 88f8b678
Branches
Tags
No related merge requests found
......@@ -189,7 +189,7 @@ void SpikeDisplayCanvas::renderOpenGL()
SpikeObject tmpSpike;
for (int i=0; i<plots.size(); i++){
if (rand()%4 > 2){
if (rand()%6 > 2){
generateSimulatedSpike(&tmpSpike, 0, 100);
plots[i].processSpikeObject(tmpSpike);
}
......
......@@ -76,9 +76,8 @@ void ProjectionAxes::plot(){
drawSpikesToTexture(false);
//updateTexture();
drawTexturedQuad();
//plotOldSpikes(true);
plotNewestSpike();
}
......@@ -187,13 +186,15 @@ void ProjectionAxes::createFBO(){
void ProjectionAxes::drawSpikesToTexture(bool allSpikes){
std::cout<<"Populating the new texture()"<<std::endl;
std::cout<<"Populating the texture()"<<std::endl;
if (!isTextureValid){
createTexture();
allSpikes = true;
}
glViewport(0,0,texWidth, texHeight);
glLoadIdentity();
setViewportRange(xlims[0], ylims[0], xlims[1], ylims[1]);
// set the rendering destination to FBO
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, fboId);
// plot to the texture
......@@ -211,9 +212,6 @@ void ProjectionAxes::drawTexturedQuad(){
glBindTexture(GL_TEXTURE_2D, textureId);
int size = 1;
int texS = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment