本文整理汇总了Java中org.lwjgl.opengl.GL11.glLogicOp方法的典型用法代码示例。如果您正苦于以下问题:Java GL11.glLogicOp方法的具体用法?Java GL11.glLogicOp怎么用?Java GL11.glLogicOp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.GL11
的用法示例。
在下文中一共展示了GL11.glLogicOp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: colorLogicOp
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void colorLogicOp(int opcode)
{
if (opcode != colorLogicState.field_179196_b)
{
colorLogicState.field_179196_b = opcode;
GL11.glLogicOp(opcode);
}
}
示例2: colorLogicOp
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void colorLogicOp(int opcode)
{
if (opcode != colorLogicState.opcode)
{
colorLogicState.opcode = opcode;
GL11.glLogicOp(opcode);
}
}
示例3: drawCursorVertical
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* draws the vertical line cursor in the textbox
*/
private void drawCursorVertical(int p_146188_1_, int p_146188_2_, int p_146188_3_, int p_146188_4_)
{
int i1;
if (p_146188_1_ < p_146188_3_)
{
i1 = p_146188_1_;
p_146188_1_ = p_146188_3_;
p_146188_3_ = i1;
}
if (p_146188_2_ < p_146188_4_)
{
i1 = p_146188_2_;
p_146188_2_ = p_146188_4_;
p_146188_4_ = i1;
}
if (p_146188_3_ > this.xPosition + this.width)
{
p_146188_3_ = this.xPosition + this.width;
}
if (p_146188_1_ > this.xPosition + this.width)
{
p_146188_1_ = this.xPosition + this.width;
}
Tessellator tessellator = Tessellator.instance;
GL11.glColor4f(0.0F, 0.0F, 255.0F, 255.0F);
GL11.glDisable(GL11.GL_TEXTURE_2D);
GL11.glEnable(GL11.GL_COLOR_LOGIC_OP);
GL11.glLogicOp(GL11.GL_OR_REVERSE);
tessellator.startDrawingQuads();
tessellator.addVertex((double)p_146188_1_, (double)p_146188_4_, 0.0D);
tessellator.addVertex((double)p_146188_3_, (double)p_146188_4_, 0.0D);
tessellator.addVertex((double)p_146188_3_, (double)p_146188_2_, 0.0D);
tessellator.addVertex((double)p_146188_1_, (double)p_146188_2_, 0.0D);
tessellator.draw();
GL11.glDisable(GL11.GL_COLOR_LOGIC_OP);
GL11.glEnable(GL11.GL_TEXTURE_2D);
}