Skip to content

Instantly share code, notes, and snippets.

@Reputeless
Created October 24, 2014 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reputeless/44540198a72429898829 to your computer and use it in GitHub Desktop.
Save Reputeless/44540198a72429898829 to your computer and use it in GitHub Desktop.
# 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