Skip to content

Instantly share code, notes, and snippets.

@Reputeless
Created Oct 24, 2014
Embed
What would you like to do?
# include <Siv3D.hpp>
void Main()
{
Window::Resize(1280, 720);
Texture texture(L"Example/Windmill.png");
while (System::Update())
{
// [解決法 A] 拡大時にフィルタリングをしない
//Graphics::Set2DSamplerState(SamplerState(TextureFilter::MinMagPointMipLinear));
// [解決法 B] Texture の切り抜きは行わず、アドレスモードを Clamp に
//Graphics::Set2DSamplerState(SamplerState(TextureFilter::MinMagMipLinear, TextureAddressMode::Clamp));
texture.scale(Mouse::Pos().x / 100.0).draw(5,5);
Graphics::Set2DSamplerState(SamplerState::Default());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment