mirror of
https://github.com/AxioDL/amuse.git
synced 2025-06-05 06:03:39 +00:00
Update amuseplay for boo changes
This commit is contained in:
parent
047a91452e
commit
e18c0a62de
@ -629,12 +629,11 @@ struct AppCallback : boo::IApplicationCallback
|
||||
m_win->setWindowFrame(100, 100, 100, 100);
|
||||
m_win->setStyle(~boo::EWindowStyle::Resize);
|
||||
m_win->showWindow();
|
||||
boo::ITextureR* tex = nullptr;
|
||||
boo::GraphicsDataToken gfxToken =
|
||||
m_win->getMainContextDataFactory()->commitTransaction([&](boo::IGraphicsDataFactory::Context& ctx) -> bool {
|
||||
tex = ctx.newRenderTexture(100, 100, boo::TextureClampMode::Repeat, 0, 0);
|
||||
return true;
|
||||
});
|
||||
boo::ObjToken<boo::ITextureR> tex;
|
||||
m_win->getMainContextDataFactory()->commitTransaction([&](boo::IGraphicsDataFactory::Context& ctx) -> bool {
|
||||
tex = ctx.newRenderTexture(100, 100, boo::TextureClampMode::Repeat, 0, 0);
|
||||
return true;
|
||||
});
|
||||
boo::IGraphicsCommandQueue* q = m_win->getCommandQueue();
|
||||
q->setRenderTarget(tex);
|
||||
q->clearTarget();
|
||||
|
Loading…
x
Reference in New Issue
Block a user