List of usage examples for org.lwjgl.opengl GL11 glStencilFunc
public static void glStencilFunc(@NativeType("GLenum") int func, @NativeType("GLint") int ref, @NativeType("GLuint") int mask)
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncAlways(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.ALWAYS, ref, mask); return this; }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncEqual(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.EQUAL, ref, mask); return this; }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncGreater(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.GREATER, ref, mask); return this; }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncGreaterEqual(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.GEQUAL, ref, mask); return this; }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncLess(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.LESS, ref, mask); return this; }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncLessEqual(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.LEQUAL, ref, mask); return this; }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncNever(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.NEVER, ref, mask); return this; }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 setStencilFuncNotEqual(int ref, int mask) { GL11.glStencilFunc(StencilFunctions.NOTEQUAL, ref, mask); return this; }
From source file:org.oscim.gdx.LwjglGL20.java
License:Apache License
public void stencilFunc(int func, int ref, int mask) { GL11.glStencilFunc(func, ref, mask); }
From source file:org.spoutcraft.api.gui.renderer.GuiRendererFBO.java
License:MIT License
@Override public void setClip(int x, int y, int width, int height) { super.setClip(x, y, width, height); GL11.glColorMask(false, false, false, false); GL11.glDepthMask(false);//from w w w . j av a2 s. c o m GL11.glStencilFunc(GL11.GL_NEVER, 1, 0xFF); GL11.glStencilOp(GL11.GL_REPLACE, GL11.GL_KEEP, GL11.GL_KEEP); GL11.glStencilMask(0xFF); clearClip(); //Actually fill stencil area RenderUtil.drawRect(x, y, width, height, Color.WHITE); GL11.glColorMask(true, true, true, true); GL11.glDepthMask(true); GL11.glStencilMask(0x00); GL11.glStencilFunc(GL11.GL_EQUAL, 1, 0xFF); }