本文整理汇总了Java中org.lwjgl.opengl.GL11.glGetTexLevelParameteri方法的典型用法代码示例。如果您正苦于以下问题:Java GL11.glGetTexLevelParameteri方法的具体用法?Java GL11.glGetTexLevelParameteri怎么用?Java GL11.glGetTexLevelParameteri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.lwjgl.opengl.GL11
的用法示例。
在下文中一共展示了GL11.glGetTexLevelParameteri方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getGLMaximumTextureSize
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* Used in the usage snooper.
*/
public static int getGLMaximumTextureSize()
{
for (int i = 16384; i > 0; i >>= 1)
{
GL11.glTexImage2D(GL11.GL_PROXY_TEXTURE_2D, 0, GL11.GL_RGBA, i, i, 0, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE, (ByteBuffer)((ByteBuffer)null));
int j = GL11.glGetTexLevelParameteri(GL11.GL_PROXY_TEXTURE_2D, 0, GL11.GL_TEXTURE_WIDTH);
if (j != 0)
{
return i;
}
}
return -1;
}
示例2: getTextureWidth
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public float getTextureWidth(TextureManager p_getTextureWidth_1_)
{
if (this.textureWidth <= 0)
{
if (this.textureLocation != null)
{
ITextureObject itextureobject = p_getTextureWidth_1_.getTexture(this.textureLocation);
int i = itextureobject.getGlTextureId();
int j = GlStateManager.getBoundTexture();
GlStateManager.bindTexture(i);
this.textureWidth = GL11.glGetTexLevelParameteri(GL11.GL_TEXTURE_2D, 0, GL11.GL_TEXTURE_WIDTH);
GlStateManager.bindTexture(j);
}
if (this.textureWidth <= 0)
{
this.textureWidth = 16;
}
}
return (float)this.textureWidth;
}
示例3: getTextureHeight
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public float getTextureHeight(TextureManager p_getTextureHeight_1_)
{
if (this.textureHeight <= 0)
{
if (this.textureLocation != null)
{
ITextureObject itextureobject = p_getTextureHeight_1_.getTexture(this.textureLocation);
int i = itextureobject.getGlTextureId();
int j = GlStateManager.getBoundTexture();
GlStateManager.bindTexture(i);
this.textureHeight = GL11.glGetTexLevelParameteri(GL11.GL_TEXTURE_2D, 0, GL11.GL_TEXTURE_HEIGHT);
GlStateManager.bindTexture(j);
}
if (this.textureHeight <= 0)
{
this.textureHeight = 16;
}
}
return (float)this.textureHeight;
}
示例4: getGLMaximumTextureSize
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
/**
* Used in the usage snooper.
*/
public static int getGLMaximumTextureSize() {
for (int i = 16384; i > 0; i >>= 1) {
GL11.glTexImage2D(GL11.GL_PROXY_TEXTURE_2D, 0, GL11.GL_RGBA, i, i, 0, GL11.GL_RGBA, GL11.GL_UNSIGNED_BYTE,
(ByteBuffer) ((ByteBuffer) null));
int j = GL11.glGetTexLevelParameteri(GL11.GL_PROXY_TEXTURE_2D, 0, GL11.GL_TEXTURE_WIDTH);
if (j != 0) {
return i;
}
}
return -1;
}
示例5: glGetTexLevelParameteri
import org.lwjgl.opengl.GL11; //导入方法依赖的package包/类
public static int glGetTexLevelParameteri(int p_187411_0_, int p_187411_1_, int p_187411_2_)
{
return GL11.glGetTexLevelParameteri(p_187411_0_, p_187411_1_, p_187411_2_);
}