Skip to content

Commit

Permalink
Tests|glsandbox: Testing different Bank configs
Browse files Browse the repository at this point in the history
There are various ways to use a Bank:
1) Non-threaded, set image in notification.
2) Non-threaded, use synchronous data access.
3) Threaded, set image in notification.
4) Threaded, use synchronous data access.
  • Loading branch information
skyjake committed May 5, 2013
1 parent f395ae5 commit 1086d33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/tests/glsandbox/testwindow.cpp
Expand Up @@ -71,7 +71,7 @@ DENG2_OBSERVES(Bank, Load)
Instance(Public *i)
: Base(i),
mode (TestRenderToTexture),
//imageBank (Bank::DisableHotStorage),
//imageBank (0),
uMvpMatrix("uMvpMatrix", GLUniform::Mat4),
uColor ("uColor", GLUniform::Vec4),
uTime ("uTime", GLUniform::Float),
Expand All @@ -91,7 +91,7 @@ DENG2_OBSERVES(Bank, Load)

imageBank.add(Path("rtt.cube", '.'), "/data/graphics/testpic.png");
//imageBank.loadAll();
imageBank.audienceForLoad += this;
//imageBank.audienceForLoad += this;
}

void canvasGLInit(Canvas &cv)
Expand Down Expand Up @@ -119,8 +119,8 @@ DENG2_OBSERVES(Bank, Load)

// Textures.
testpic.setAutoGenMips(true);
imageBank.load(Path("rtt.cube", '.'));
//testpic.setImage(imageBank.image("rtt/cube"));
//imageBank.load(Path("rtt.cube", '.'));
testpic.setImage(imageBank.image("rtt/cube"));
//testpic.setImage(QImage(":/images/testpic.png"));
testpic.setWrapT(gl::RepeatMirrored);
testpic.setMinFilter(gl::Linear, gl::MipLinear);
Expand Down

0 comments on commit 1086d33

Please sign in to comment.