• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java GL11类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.badlogic.gdx.graphics.GL11的典型用法代码示例。如果您正苦于以下问题:Java GL11类的具体用法?Java GL11怎么用?Java GL11使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: unbind

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void unbind()
{
  GL11 localGL11 = Gdx.gl11;
  int i = this.attributes.size();
  int j = 0;
  int k = 0;
  if (j < i)
  {
    VertexAttribute localVertexAttribute = this.attributes.get(j);
    switch (localVertexAttribute.usage)
    {
    case 4:
    default:
      throw new GdxRuntimeException("unkown vertex attribute type: " + localVertexAttribute.usage);
    case 1:
    case 5:
      localGL11.glDisableClientState(32886);
    case 0:
    case 2:
    case 3:
    }
    while (true)
    {
      j++;
      break;
      localGL11.glDisableClientState(32885);
      continue;
      localGL11.glClientActiveTexture(33984 + k);
      localGL11.glDisableClientState(32888);
      k++;
    }
  }
  localGL11.glBindBuffer(34962, 0);
  this.isBound = false;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:36,代码来源:VertexBufferObjectSubData.java


示例2: dispose

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void dispose()
{
  if (Gdx.gl20 != null)
  {
    tmpHandle.clear();
    tmpHandle.put(this.bufferHandle);
    tmpHandle.flip();
    GL20 localGL20 = Gdx.gl20;
    localGL20.glBindBuffer(34962, 0);
    localGL20.glDeleteBuffers(1, tmpHandle);
    this.bufferHandle = 0;
    return;
  }
  tmpHandle.clear();
  tmpHandle.put(this.bufferHandle);
  tmpHandle.flip();
  GL11 localGL11 = Gdx.gl11;
  localGL11.glBindBuffer(34962, 0);
  localGL11.glDeleteBuffers(1, tmpHandle);
  this.bufferHandle = 0;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:22,代码来源:VertexBufferObjectSubData.java


示例3: dispose

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void dispose()
{
  if (Gdx.gl20 != null)
  {
    tmpHandle.clear();
    tmpHandle.put(this.bufferHandle);
    tmpHandle.flip();
    GL20 localGL20 = Gdx.gl20;
    localGL20.glBindBuffer(34962, 0);
    localGL20.glDeleteBuffers(1, tmpHandle);
  }
  for (this.bufferHandle = 0; ; this.bufferHandle = 0)
  {
    BufferUtils.disposeUnsafeByteBuffer(this.byteBuffer);
    return;
    tmpHandle.clear();
    tmpHandle.put(this.bufferHandle);
    tmpHandle.flip();
    GL11 localGL11 = Gdx.gl11;
    localGL11.glBindBuffer(34962, 0);
    localGL11.glDeleteBuffers(1, tmpHandle);
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:24,代码来源:VertexBufferObject.java


示例4: bind

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void bind()
{
  if (this.bufferHandle == 0)
    throw new GdxRuntimeException("No buffer allocated!");
  if (Gdx.gl11 != null)
  {
    GL11 localGL11 = Gdx.gl11;
    localGL11.glBindBuffer(34963, this.bufferHandle);
    if (this.isDirty)
    {
      this.byteBuffer.limit(2 * this.buffer.limit());
      localGL11.glBufferData(34963, this.byteBuffer.limit(), this.byteBuffer, this.usage);
      this.isDirty = false;
    }
  }
  while (true)
  {
    this.isBound = true;
    return;
    GL20 localGL20 = Gdx.gl20;
    localGL20.glBindBuffer(34963, this.bufferHandle);
    if (this.isDirty)
    {
      this.byteBuffer.limit(2 * this.buffer.limit());
      localGL20.glBufferData(34963, this.byteBuffer.limit(), this.byteBuffer, this.usage);
      this.isDirty = false;
    }
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:30,代码来源:IndexBufferObject.java


示例5: createBufferObject

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
private int createBufferObject()
{
  int i;
  if (Gdx.gl20 != null)
  {
    Gdx.gl20.glGenBuffers(1, tmpHandle);
    Gdx.gl20.glBindBuffer(34963, tmpHandle.get(0));
    Gdx.gl20.glBufferData(34963, this.byteBuffer.capacity(), null, this.usage);
    Gdx.gl20.glBindBuffer(34963, 0);
    i = tmpHandle.get(0);
  }
  GL11 localGL11;
  do
  {
    return i;
    localGL11 = Gdx.gl11;
    i = 0;
  }
  while (localGL11 == null);
  Gdx.gl11.glGenBuffers(1, tmpHandle);
  Gdx.gl11.glBindBuffer(34963, tmpHandle.get(0));
  Gdx.gl11.glBufferData(34963, this.byteBuffer.capacity(), null, this.usage);
  Gdx.gl11.glBindBuffer(34963, 0);
  return tmpHandle.get(0);
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:26,代码来源:IndexBufferObjectSubData.java


示例6: render

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
@Override
public void render(float delta) {
	Gdx.gl.glClear(GL11.GL_COLOR_BUFFER_BIT);
	
	stage.act();
	timer -= delta;
	if(timer < 0)		
		dispararAlien();
	comprobarListas();
	comprobarColisiones();
	stage.draw();
}
 
开发者ID:makigas,项目名称:alienchase-gdx,代码行数:13,代码来源:GameplayScreen.java


示例7: createBufferObject

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
private int createBufferObject()
{
  if (Gdx.gl20 != null)
    Gdx.gl20.glGenBuffers(1, tmpHandle);
  int i;
  while (true)
  {
    i = tmpHandle.get(0);
    if (this.isStatic)
      break label147;
    this.maxBufferSize = this.byteBuffer.capacity();
    if (Gdx.gl20 == null)
      break;
    GL20 localGL20 = Gdx.gl20;
    localGL20.glBindBuffer(34962, i);
    localGL20.glBufferData(34962, this.maxBufferSize, null, this.usage);
    localGL20.glBindBuffer(34962, 0);
    return i;
    Gdx.gl11.glGenBuffers(1, tmpHandle);
  }
  GL11 localGL11 = Gdx.gl11;
  localGL11.glBindBuffer(34962, i);
  localGL11.glBufferData(34962, this.maxBufferSize, null, this.usage);
  localGL11.glBindBuffer(34962, 0);
  return i;
  label147: this.maxBufferSize = 0;
  return i;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:29,代码来源:VertexBufferObject.java


示例8: unbind

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void unbind()
{
  GL11 localGL11 = Gdx.gl11;
  int i = this.attributes.size();
  int j = 0;
  int k = 0;
  if (j < i)
  {
    switch (this.attributes.get(j).usage)
    {
    case 0:
    case 4:
    default:
    case 1:
    case 5:
    case 2:
    case 3:
    }
    while (true)
    {
      j++;
      break;
      localGL11.glDisableClientState(32886);
      continue;
      localGL11.glDisableClientState(32885);
      continue;
      localGL11.glClientActiveTexture(33984 + k);
      localGL11.glDisableClientState(32888);
      k++;
    }
  }
  localGL11.glBindBuffer(34962, 0);
  this.isBound = false;
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:35,代码来源:VertexBufferObject.java


示例9: dispose

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void dispose()
{
  if (Gdx.gl20 != null)
  {
    tmpHandle.clear();
    tmpHandle.put(this.bufferHandle);
    tmpHandle.flip();
    GL20 localGL20 = Gdx.gl20;
    localGL20.glBindBuffer(34963, 0);
    localGL20.glDeleteBuffers(1, tmpHandle);
    this.bufferHandle = 0;
  }
  while (true)
  {
    BufferUtils.disposeUnsafeByteBuffer(this.byteBuffer);
    return;
    if (Gdx.gl11 != null)
    {
      tmpHandle.clear();
      tmpHandle.put(this.bufferHandle);
      tmpHandle.flip();
      GL11 localGL11 = Gdx.gl11;
      localGL11.glBindBuffer(34963, 0);
      localGL11.glDeleteBuffers(1, tmpHandle);
      this.bufferHandle = 0;
    }
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:29,代码来源:IndexBufferObject.java


示例10: bind

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void bind()
{
  if (this.bufferHandle == 0)
    throw new GdxRuntimeException("buuh");
  if (Gdx.gl11 != null)
  {
    GL11 localGL11 = Gdx.gl11;
    localGL11.glBindBuffer(34963, this.bufferHandle);
    if (this.isDirty)
    {
      this.byteBuffer.limit(2 * this.buffer.limit());
      localGL11.glBufferSubData(34963, 0, this.byteBuffer.limit(), this.byteBuffer);
      this.isDirty = false;
    }
  }
  while (true)
  {
    this.isBound = true;
    return;
    GL20 localGL20 = Gdx.gl20;
    localGL20.glBindBuffer(34963, this.bufferHandle);
    if (this.isDirty)
    {
      this.byteBuffer.limit(2 * this.buffer.limit());
      localGL20.glBufferSubData(34963, 0, this.byteBuffer.limit(), this.byteBuffer);
      this.isDirty = false;
    }
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:30,代码来源:IndexBufferObjectSubData.java


示例11: getGL11

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
@Override
public GL11 getGL11() {
	throw new ServerGraphicsException();
}
 
开发者ID:Olloth,项目名称:LibGDXServer,代码行数:5,代码来源:ServerGraphics.java


示例12: getGL11

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
@Override
public GL11 getGL11() {
	// TODO Auto-generated method stub
	return null;
}
 
开发者ID:javierj,项目名称:nikkylittlequest,代码行数:6,代码来源:TestStage.java


示例13: bind

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void bind()
{
  GL11 localGL11 = Gdx.gl11;
  localGL11.glBindBuffer(34962, this.bufferHandle);
  if (this.isDirty)
  {
    this.byteBuffer.limit(4 * this.buffer.limit());
    localGL11.glBufferSubData(34962, 0, this.byteBuffer.limit(), this.byteBuffer);
    this.isDirty = false;
  }
  int i = this.attributes.size();
  int j = 0;
  int k = 0;
  VertexAttribute localVertexAttribute;
  int m;
  while (j < i)
  {
    localVertexAttribute = this.attributes.get(j);
    switch (localVertexAttribute.usage)
    {
    case 4:
    default:
      throw new GdxRuntimeException("unkown vertex attribute type: " + localVertexAttribute.usage);
    case 0:
      localGL11.glEnableClientState(32884);
      localGL11.glVertexPointer(localVertexAttribute.numComponents, 5126, this.attributes.vertexSize, localVertexAttribute.offset);
      m = k;
      j++;
      k = m;
      break;
    case 1:
    case 5:
      if (localVertexAttribute.usage != 5)
        break label362;
    case 2:
    case 3:
    }
  }
  label362: for (int n = 5121; ; n = 5126)
  {
    localGL11.glEnableClientState(32886);
    localGL11.glColorPointer(localVertexAttribute.numComponents, n, this.attributes.vertexSize, localVertexAttribute.offset);
    m = k;
    break;
    localGL11.glEnableClientState(32885);
    localGL11.glNormalPointer(5126, this.attributes.vertexSize, localVertexAttribute.offset);
    m = k;
    break;
    localGL11.glClientActiveTexture(33984 + k);
    localGL11.glEnableClientState(32888);
    localGL11.glTexCoordPointer(localVertexAttribute.numComponents, 5126, this.attributes.vertexSize, localVertexAttribute.offset);
    m = k + 1;
    break;
    this.isBound = true;
    return;
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:58,代码来源:VertexBufferObjectSubData.java


示例14: bind

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public void bind()
{
  bindBuffer();
  GL11 localGL11 = Gdx.gl11;
  int i = this.attributes.size();
  int j = 0;
  int k = 0;
  VertexAttribute localVertexAttribute;
  int m;
  if (j < i)
  {
    localVertexAttribute = this.attributes.get(j);
    switch (localVertexAttribute.usage)
    {
    case 4:
    default:
    case 0:
      for (m = k; ; m = k)
      {
        j++;
        k = m;
        break;
        localGL11.glEnableClientState(32884);
        localGL11.glVertexPointer(localVertexAttribute.numComponents, 5126, this.attributes.vertexSize, localVertexAttribute.offset);
      }
    case 1:
    case 5:
      if (localVertexAttribute.usage != 5)
        break;
    case 2:
    case 3:
    }
  }
  for (int n = 5121; ; n = 5126)
  {
    localGL11.glEnableClientState(32886);
    localGL11.glColorPointer(localVertexAttribute.numComponents, n, this.attributes.vertexSize, localVertexAttribute.offset);
    m = k;
    break;
    localGL11.glEnableClientState(32885);
    localGL11.glNormalPointer(5126, this.attributes.vertexSize, localVertexAttribute.offset);
    m = k;
    break;
    localGL11.glClientActiveTexture(33984 + k);
    localGL11.glEnableClientState(32888);
    localGL11.glTexCoordPointer(localVertexAttribute.numComponents, 5126, this.attributes.vertexSize, localVertexAttribute.offset);
    m = k + 1;
    break;
    this.isBound = true;
    return;
  }
}
 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:53,代码来源:VertexBufferObject.java


示例15: getGL11

import com.badlogic.gdx.graphics.GL11; //导入依赖的package包/类
public abstract GL11 getGL11(); 
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:2,代码来源:Graphics.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SharedASTProvider类代码示例发布时间:2022-05-23
下一篇:
Java HelloResponse类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap