mirror of https://github.com/AxioDL/metaforce.git
Updates for texture clamp mode
This commit is contained in:
parent
4b39da4e01
commit
3fc46f1597
|
@ -395,7 +395,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
|||
{
|
||||
m_tex =
|
||||
ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1,
|
||||
boo::TextureFormat::RGBA8, texmap.get(), bufSz);
|
||||
boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, texmap.get(), bufSz);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
@ -480,7 +480,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
|||
{
|
||||
m_tex =
|
||||
ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1,
|
||||
boo::TextureFormat::I8, texmap.get(), bufSz);
|
||||
boo::TextureFormat::I8, boo::TextureClampMode::Repeat, texmap.get(), bufSz);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
@ -604,7 +604,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
|||
{
|
||||
m_tex =
|
||||
ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1,
|
||||
boo::TextureFormat::RGBA8, texmap.get(), bufSz);
|
||||
boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, texmap.get(), bufSz);
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
@ -689,7 +689,7 @@ FontAtlas::FontAtlas(boo::IGraphicsDataFactory* gf, FT_Face face, uint32_t dpi,
|
|||
{
|
||||
m_tex =
|
||||
ctx.newStaticArrayTexture(TEXMAP_DIM, finalHeight, fullTexmapLayers + 1, 1,
|
||||
boo::TextureFormat::I8, texmap.get(), bufSz);
|
||||
boo::TextureFormat::I8, boo::TextureClampMode::Repeat, texmap.get(), bufSz);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ RootView::RootView(IViewManager& viewMan, ViewResources& res, boo::IWindow* wind
|
|||
{
|
||||
buildResources(ctx, res);
|
||||
m_splitMenuSystem.emplace(*this, ctx);
|
||||
m_renderTex = ctx.newRenderTexture(rect.size[0], rect.size[1], 1, 3);
|
||||
m_renderTex = ctx.newRenderTexture(rect.size[0], rect.size[1], boo::TextureClampMode::Repeat, 1, 3);
|
||||
return true;
|
||||
});
|
||||
resized(rect, rect);
|
||||
|
|
|
@ -17,7 +17,7 @@ static const zeus::RGBA32 Tex[3] =
|
|||
|
||||
void SplitView::Resources::init(boo::IGraphicsDataFactory::Context& ctx, const IThemeData& theme)
|
||||
{
|
||||
m_shadingTex = ctx.newStaticTexture(3, 1, 1, boo::TextureFormat::RGBA8, Tex, 12);
|
||||
m_shadingTex = ctx.newStaticTexture(3, 1, 1, boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, Tex, 12);
|
||||
}
|
||||
|
||||
SplitView::SplitView(ViewResources& res, View& parentView, ISplitSpaceController* controller,
|
||||
|
|
|
@ -19,7 +19,7 @@ static const zeus::RGBA32 Tex[] =
|
|||
|
||||
void Toolbar::Resources::init(boo::IGraphicsDataFactory::Context& ctx, const IThemeData& theme)
|
||||
{
|
||||
m_shadingTex = ctx.newStaticTexture(4, 1, 1, boo::TextureFormat::RGBA8, Tex, 16);
|
||||
m_shadingTex = ctx.newStaticTexture(4, 1, 1, boo::TextureFormat::RGBA8, boo::TextureClampMode::Repeat, Tex, 16);
|
||||
}
|
||||
|
||||
Toolbar::Toolbar(ViewResources& res, View& parentView, Position tbPos, unsigned units)
|
||||
|
|
Loading…
Reference in New Issue