本文整理汇总了Java中org.rajawali3d.BufferInfo类的典型用法代码示例。如果您正苦于以下问题:Java BufferInfo类的具体用法?Java BufferInfo怎么用?Java BufferInfo使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BufferInfo类属于org.rajawali3d包,在下文中一共展示了BufferInfo类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: PlanesGalore
import org.rajawali3d.BufferInfo; //导入依赖的package包/类
public PlanesGalore() {
super();
mPlanePositionsBufferInfo = new BufferInfo();
mRotationSpeedsBufferInfo = new BufferInfo();
init();
}
示例2: setVertices
import org.rajawali3d.BufferInfo; //导入依赖的package包/类
/**
* Set the vertex buffer handle. This is passed to {@link VertexShader#setVertices(int)}
*
* @param bufferInfo
*/
public void setVertices(BufferInfo bufferInfo) {
mVertexShader.setVertices(bufferInfo.bufferHandle, bufferInfo.type, bufferInfo.stride, bufferInfo.offset);
}
示例3: setTextureCoords
import org.rajawali3d.BufferInfo; //导入依赖的package包/类
/**
* Set the texture coordinates buffer handle. This is passed to {@link VertexShader#setTextureCoords(int)}
*
* @param bufferInfo
*/
public void setTextureCoords(BufferInfo bufferInfo) {
mVertexShader.setTextureCoords(bufferInfo.bufferHandle, bufferInfo.type, bufferInfo.stride, bufferInfo.offset);
}
示例4: setNormals
import org.rajawali3d.BufferInfo; //导入依赖的package包/类
/**
* Set the normal buffer handle. This is passed to {@link VertexShader#setNormals(int)}
*
* @param bufferInfo
*/
public void setNormals(BufferInfo bufferInfo) {
mVertexShader.setNormals(bufferInfo.bufferHandle, bufferInfo.type, bufferInfo.stride, bufferInfo.offset);
}
示例5: setVertexColors
import org.rajawali3d.BufferInfo; //导入依赖的package包/类
/**
* Set the vertex color buffer handle. This is passed to {@link VertexShader#setColorBuffer(int)}
*
* @param bufferInfo
*/
public void setVertexColors(BufferInfo bufferInfo) {
mVertexShader.setVertexColors(bufferInfo.bufferHandle, bufferInfo.type, bufferInfo.stride, bufferInfo.offset);
}
示例6: setVertexColors
import org.rajawali3d.BufferInfo; //导入依赖的package包/类
/**
* Set the vertex color buffer handle. This is passed to {@link VertexShader#setVertexColors(int)}
*
* @param bufferInfo
*/
public void setVertexColors(BufferInfo bufferInfo) {
mVertexShader.setVertexColors(bufferInfo.bufferHandle, bufferInfo.type, bufferInfo.stride, bufferInfo.offset);
}