Merge pull request #430 from Hultan/master
Small change in examples/texture/draw_tile
This commit is contained in:
commit
0975c91121
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func main() {
|
||||||
|
|
||||||
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
|
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
|
||||||
texPattern := rl.LoadTexture("patterns.png")
|
texPattern := rl.LoadTexture("patterns.png")
|
||||||
rl.SetTextureFilter(texPattern, rl.TextureFilterNearestMipLinear) // Makes the texture smoother when upscaled
|
rl.SetTextureFilter(texPattern, rl.FilterTrilinear) // Makes the texture smoother when upscaled
|
||||||
|
|
||||||
// Coordinates for all patterns inside the texture
|
// Coordinates for all patterns inside the texture
|
||||||
recPattern := []rl.Rectangle{
|
recPattern := []rl.Rectangle{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue