コード例 #1
0
 private void addGeometry(final ImageData data) {
   final GeometrySprite geom =
       ((MemoryObject.ObjectFactory<GeometrySprite>) GLGeometrySprite.Factory).newPooledInstance();
   final Pixmap pixmap = data.getPixmap();
   geom.setTextureCoordinates(
       pixmap.getTop(), pixmap.getLeft(), pixmap.getBottom(), pixmap.getRight());
   geom.setSize(pixmap.getWidth(), pixmap.getHeight());
   this.m_entity3D.addTexturedGeometry(geom, pixmap.getTexture(), null);
   geom.removeReference();
 }