mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
using texture wrap setting
This commit is contained in:
@@ -444,6 +444,7 @@ public interface PConstants {
|
||||
public static final int BILINEAR = 3;
|
||||
/** This constant identifies the linear/linear function to build mipmaps */
|
||||
public static final int TRILINEAR = 4;
|
||||
|
||||
/** This constant identifies the clamp-to-edge wrapping mode */
|
||||
public static final int CLAMP = 0;
|
||||
/** This constant identifies the repeat wrapping mode */
|
||||
|
||||
@@ -5183,6 +5183,8 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
PTexture.Parameters params = (PTexture.Parameters)img.getParams(pgPrimary);
|
||||
if (params == null) {
|
||||
params = PTexture.newParameters();
|
||||
params.wrapU = textureWrap;
|
||||
params.wrapV = textureWrap;
|
||||
img.setParams(pgPrimary, params);
|
||||
}
|
||||
if (img.parent == null) {
|
||||
|
||||
Reference in New Issue
Block a user