mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 21:47:41 +00:00
Changes to support new boo object tracker API
This commit is contained in:
@@ -17,7 +17,7 @@ void ViewResources::init(boo::IGraphicsDataFactory* factory, FontCache* fcache,
|
||||
|
||||
m_curveFont = fcache->prepCurvesFont(factory, AllCharFilter, false, 8.f, dpi);
|
||||
|
||||
m_resData = factory->commitTransaction(
|
||||
factory->commitTransaction(
|
||||
[&](boo::IGraphicsDataFactory::Context& ctx) -> bool
|
||||
{
|
||||
switch (ctx.platform())
|
||||
@@ -48,6 +48,15 @@ void ViewResources::init(boo::IGraphicsDataFactory* factory, FontCache* fcache,
|
||||
});
|
||||
}
|
||||
|
||||
void ViewResources::destroyResData()
|
||||
{
|
||||
m_viewRes.destroy();
|
||||
m_textRes.destroy();
|
||||
m_splitRes.destroy();
|
||||
m_toolbarRes.destroy();
|
||||
m_buttonRes.destroy();
|
||||
}
|
||||
|
||||
void ViewResources::prepFontCacheSync()
|
||||
{
|
||||
unsigned dpi = 72.f * m_pixelFactor;
|
||||
|
||||
Reference in New Issue
Block a user