Java Code Examples for com.badlogic.gdx.graphics.Texture.TextureWrap#ClampToEdge
The following examples show how to use
com.badlogic.gdx.graphics.Texture.TextureWrap#ClampToEdge .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GLTFTypes.java From gdx-gltf with Apache License 2.0 | 5 votes |
private static TextureWrap mapTextureWrap(Integer wrap) { if(wrap == null) return TextureWrap.Repeat; switch(wrap){ case 33071: return TextureWrap.ClampToEdge; case 33648: return TextureWrap.MirroredRepeat; case 10497: return TextureWrap.Repeat; } throw new GdxRuntimeException("unexpected texture wrap " + wrap); }
Example 2
Source File: PostProcessor.java From uracer-kotd with Apache License 2.0 | 4 votes |
/** Construct a new PostProcessor with the given parameters, defaulting to <em>TextureWrap.ClampToEdge</em> as texture wrap mode */ public PostProcessor (int fboWidth, int fboHeight, boolean useDepth, boolean useAlphaChannel, boolean use32Bits) { this(fboWidth, fboHeight, useDepth, useAlphaChannel, use32Bits, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge); }
Example 3
Source File: PostProcessor.java From uracer-kotd with Apache License 2.0 | 4 votes |
/** Construct a new PostProcessor with the given parameters and viewport, defaulting to <em>TextureWrap.ClampToEdge</em> as * texture wrap mode */ public PostProcessor (Rectangle viewport, boolean useDepth, boolean useAlphaChannel, boolean use32Bits) { this((int)viewport.width, (int)viewport.height, useDepth, useAlphaChannel, use32Bits, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge); setViewport(viewport); }
Example 4
Source File: TexturePacker.java From gdx-texture-packer-gui with Apache License 2.0 | 4 votes |
private String getRepeatValue () { if (settings.wrapX == TextureWrap.Repeat && settings.wrapY == TextureWrap.Repeat) return "xy"; if (settings.wrapX == TextureWrap.Repeat && settings.wrapY == TextureWrap.ClampToEdge) return "x"; if (settings.wrapX == TextureWrap.ClampToEdge && settings.wrapY == TextureWrap.Repeat) return "y"; return "none"; }
Example 5
Source File: PostProcessor.java From RuinsOfRevenge with MIT License | 4 votes |
/** Construct a new PostProcessor with the given parameters. */ public PostProcessor( int fboWidth, int fboHeight, boolean useDepth, boolean useAlphaChannel, boolean use32Bits ) { this( fboWidth, fboHeight, useDepth, useAlphaChannel, use32Bits, TextureWrap.ClampToEdge, TextureWrap.ClampToEdge ); }