-
-
Save Reputeless/44540198a72429898829 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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