当前位置: 首页>>代码示例>>Java>>正文


Java GL11.glHint方法代码示例

本文整理汇总了Java中org.lwjgl.opengl.GL11.glHint方法的典型用法代码示例。如果您正苦于以下问题:Java GL11.glHint方法的具体用法?Java GL11.glHint怎么用?Java GL11.glHint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.lwjgl.opengl.GL11的用法示例。


在下文中一共展示了GL11.glHint方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: renderOne

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void renderOne(final Entity ent) {
    if (!checkValidity((EntityLivingBase)ent)) {
        return;
    }
    GL11.glPushAttrib(1048575);
    GL11.glDisable(3008);
    GL11.glDisable(3553);
    GL11.glDisable(2896);
    GL11.glEnable(3042);
    GL11.glBlendFunc(770, 771);
    GL11.glLineWidth(0.2f);
    GL11.glEnable(2848);
    GL11.glHint(3154, 4354);
    GL11.glEnable(2960);
    GL11.glClear(1024);
    GL11.glClearStencil(15);
    GL11.glStencilFunc(512, 1, 15);
    GL11.glStencilOp(7681, 7681, 7681);
    colorLines(ent);
    GL11.glLineWidth(1.5f);
    GL11.glStencilOp(7681, 7681, 7681);
    GL11.glPolygonMode(1032, 6913);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:24,代码来源:ESP.java

示例2: enableRender3D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void enableRender3D(boolean depthOff) {
    if (depthOff) {
        GL11.glDepthMask(false);
        GL11.glDisable(GL11.GL_DEPTH_TEST);
    }

    GL11.glDisable(GL11.GL_ALPHA_TEST);
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glDisable(GL11.GL_TEXTURE_2D);

    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glEnable(GL11.GL_LINE_SMOOTH);
    GL11.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST);
    GL11.glLineWidth(1.0F);
}
 
开发者ID:Ygore,项目名称:bit-client,代码行数:16,代码来源:RenderUtil.java

示例3: renderFive

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void renderFive(final Entity ent) {
    if (!checkValidity((EntityLivingBase)ent)) {
        return;
    }
    GL11.glPolygonOffset(1.0f, 2000000.0f);
    GL11.glDisable(10754);
    GL11.glDisable(2960);
    GL11.glDisable(2848);
    GL11.glHint(3154, 4352);
    GL11.glDisable(3042);
    GL11.glEnable(2896);
    GL11.glEnable(3553);
    GL11.glEnable(3008);
    GL11.glPopAttrib();
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:16,代码来源:ESP.java

示例4: enableGL2D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void enableGL2D() {
    GL11.glDisable((int)2929);
    GL11.glEnable((int)3042);
    GL11.glDisable((int)3553);
    GL11.glBlendFunc((int)770, (int)771);
    GL11.glDepthMask((boolean)true);
    GL11.glEnable((int)2848);
    GL11.glHint((int)3154, (int)4354);
    GL11.glHint((int)3155, (int)4354);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:11,代码来源:RenderUtils.java

示例5: disableGL2D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void disableGL2D() {
    GL11.glEnable((int)3553);
    GL11.glDisable((int)3042);
    GL11.glEnable((int)2929);
    GL11.glDisable((int)2848);
    GL11.glHint((int)3154, (int)4352);
    GL11.glHint((int)3155, (int)4352);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:9,代码来源:RenderUtils.java

示例6: enableGL3D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void enableGL3D(float lineWidth) {
    GL11.glDisable((int)3008);
    GL11.glEnable((int)3042);
    GL11.glBlendFunc((int)770, (int)771);
    GL11.glDisable((int)3553);
    GL11.glDisable((int)2929);
    GL11.glDepthMask((boolean)false);
    GL11.glEnable((int)2884);
    Minecraft.getMinecraft().entityRenderer.disableLightmap();
    GL11.glEnable((int)2848);
    GL11.glHint((int)3154, (int)4354);
    GL11.glHint((int)3155, (int)4354);
    GL11.glLineWidth((float)lineWidth);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:15,代码来源:RenderUtils.java

示例7: disableGL3D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void disableGL3D() {
    GL11.glEnable((int)3553);
    GL11.glEnable((int)2929);
    GL11.glDisable((int)3042);
    GL11.glEnable((int)3008);
    GL11.glDepthMask((boolean)true);
    GL11.glCullFace((int)1029);
    GL11.glDisable((int)2848);
    GL11.glHint((int)3154, (int)4352);
    GL11.glHint((int)3155, (int)4352);
}
 
开发者ID:SkidJava,项目名称:BaseClient,代码行数:12,代码来源:RenderUtils.java

示例8: onDraw

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
@SubscribeEvent
public void onDraw(RenderWorldLastEvent event){
    float partialTicks = event.getPartialTicks();
    double pX = MINECRAFT.player.prevPosX + (MINECRAFT.player.posX - MINECRAFT.player.prevPosX) * partialTicks;
    double pY = MINECRAFT.player.prevPosY + (MINECRAFT.player.posY - MINECRAFT.player.prevPosY) * partialTicks;
    double pZ = MINECRAFT.player.prevPosZ + (MINECRAFT.player.posZ - MINECRAFT.player.prevPosZ) * partialTicks;

    /* Prepare */
    GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
    GL11.glPushMatrix();
    GL11.glTranslated(-pX,-pY,-pZ);
    GL11.glDisable(GL11.GL_LIGHTING);
    GL11.glDisable(GL11.GL_TEXTURE_2D);
    GL11.glDisable(GL11.GL_DEPTH_TEST);
    GL11.glEnable(GL11.GL_BLEND);
    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
    GL11.glHint( GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST );


    calculateFlash();
    drawBlocksAndChunks(pY);
    drawEntities(partialTicks);
    drawTileEntityTags();
    drawEntityTags(partialTicks);


    /* Restore settings */
    GL11.glEnable(GL11.GL_LIGHTING);
    GL11.glEnable(GL11.GL_DEPTH_TEST);
    GL11.glDisable(GL11.GL_TEXTURE_2D);
    GL11.glPopMatrix();
    GL11.glPopAttrib();

}
 
开发者ID:TerminatorNL,项目名称:LagGoggles,代码行数:35,代码来源:LagOverlayGui.java

示例9: enableGL3D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void enableGL3D(float lineWidth) {
	GL11.glDisable(3008);
	GL11.glEnable(3042);
	GL11.glBlendFunc(770, 771);
	GL11.glDisable(3553);
	GL11.glDisable(2929);
	GL11.glDepthMask(false);
	GL11.glEnable(2884);
	Minecraft.getMinecraft().entityRenderer.disableLightmap();
	GL11.glEnable(2848);
	GL11.glHint(3154, 4354);
	GL11.glHint(3155, 4354);
	GL11.glLineWidth(lineWidth);
}
 
开发者ID:Moudoux,项目名称:EMC,代码行数:15,代码来源:RenderUtils.java

示例10: drawFilledCircle

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void drawFilledCircle(int xx, int yy, float radius, int col) {
	float f = (col >> 24 & 0xFF) / 255.0F;
	float f2 = (col >> 16 & 0xFF) / 255.0F;
	float f3 = (col >> 8 & 0xFF) / 255.0F;
	float f4 = (col & 0xFF) / 255.0F;
	GL11.glPushMatrix();
	GL11.glEnable(3042);
	GL11.glDisable(3553);
	GL11.glBlendFunc(770, 771);
	GL11.glEnable(2848);
	GL11.glHint(GL11.GL_PERSPECTIVE_CORRECTION_HINT, GL11.GL_NICEST);
	GL11.glBegin(6);

	for (int i = 0; i < 50; i++) {
		float x = (float) (radius * Math.sin(i * 0.12566370614359174D));
		float y = (float) (radius * Math.cos(i * 0.12566370614359174D));
		GL11.glColor4f(f2, f3, f4, f);
		GL11.glVertex2f(xx + x, yy + y);
	}

	GL11.glEnd();
	GL11.glEnable(3553);
	GL11.glDisable(3042);
	GL11.glDisable(2848);
	GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
	GL11.glPopMatrix();
}
 
开发者ID:Moudoux,项目名称:EMC,代码行数:28,代码来源:RenderUtils.java

示例11: enableGL2D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void enableGL2D() {
	GL11.glDisable(2929);
	GL11.glEnable(3042);
	GL11.glDisable(3553);
	GL11.glBlendFunc(770, 771);
	GL11.glDepthMask(true);
	GL11.glEnable(2848);
	GL11.glHint(3154, 4354);
	GL11.glHint(3155, 4354);
}
 
开发者ID:Moudoux,项目名称:EMC,代码行数:11,代码来源:RenderUtils.java

示例12: disableGL2D

import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static void disableGL2D() {
	GL11.glEnable(3553);
	GL11.glDisable(3042);
	GL11.glEnable(2929);
	GL11.glDisable(2848);
	GL11.glHint(3154, 4352);
	GL11.glHint(3155, 4352);
}
 
开发者ID:Moudoux,项目名称:EMC,代码行数:9,代码来源:RenderUtils.java


注:本文中的org.lwjgl.opengl.GL11.glHint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。