本文整理汇总了Java中com.jme3.scene.VertexBuffer.resetObject方法的典型用法代码示例。如果您正苦于以下问题:Java VertexBuffer.resetObject方法的具体用法?Java VertexBuffer.resetObject怎么用?Java VertexBuffer.resetObject使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jme3.scene.VertexBuffer
的用法示例。
在下文中一共展示了VertexBuffer.resetObject方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deleteBuffer
import com.jme3.scene.VertexBuffer; //导入方法依赖的package包/类
public void deleteBuffer(VertexBuffer vb) {
int bufId = vb.getId();
if (bufId != -1) {
// delete buffer
intBuf1.put(0, bufId);
intBuf1.position(0).limit(1);
glDeleteBuffers(intBuf1);
vb.resetObject();
}
}
示例2: deleteBuffer
import com.jme3.scene.VertexBuffer; //导入方法依赖的package包/类
public void deleteBuffer(VertexBuffer vb) {
int bufId = vb.getId();
if (bufId != -1) {
// delete buffer
intBuf1.put(0, bufId);
intBuf1.position(0).limit(1);
if (verboseLogging) {
logger.info("GLES20.glDeleteBuffers(1, buffer)");
}
Gdx.gl20.glDeleteBuffers(1, intBuf1);
vb.resetObject();
}
}
示例3: deleteBuffer
import com.jme3.scene.VertexBuffer; //导入方法依赖的package包/类
public void deleteBuffer(VertexBuffer vb) {
int bufId = vb.getId();
if (bufId != -1) {
// delete buffer
ib1.put(0, bufId);
ib1.position(0).limit(1);
gl.glDeleteBuffers(1, ib1);
vb.resetObject();
}
}
示例4: deleteBuffer
import com.jme3.scene.VertexBuffer; //导入方法依赖的package包/类
public void deleteBuffer(VertexBuffer vb) {
int bufId = vb.getId();
if (bufId != -1) {
// delete buffer
intBuf1.put(0, bufId);
intBuf1.position(0).limit(1);
if (verboseLogging) {
logger.info("GLES20.glDeleteBuffers(1, buffer)");
}
GLES20.glDeleteBuffers(1, intBuf1);
vb.resetObject();
}
}
示例5: deleteBuffer
import com.jme3.scene.VertexBuffer; //导入方法依赖的package包/类
public void deleteBuffer(VertexBuffer vb) {
int bufId = vb.getId();
if (bufId != -1) {
// delete buffer
intBuf1.put(0, bufId);
intBuf1.position(0).limit(1);
deleteBuffer();
vb.resetObject();
}
}
示例6: deleteBuffer
import com.jme3.scene.VertexBuffer; //导入方法依赖的package包/类
public void deleteBuffer(VertexBuffer vb) {
int bufId = vb.getId();
if (bufId != -1) {
// delete buffer
intBuf1.put(0, bufId);
intBuf1.position(0).limit(1);
glDeleteBuffers(intBuf1);
vb.resetObject();
//statistics.onDeleteVertexBuffer();
}
}