【发布时间】:2011-11-20 05:39:16
【问题描述】:
我将 WhirlyGlobe 添加到我的项目中,效果很好。现在我需要添加图像作为标记,我使用这样的代码。但似乎效果不佳。 标签在第一个字符的顶部显示一个白色区域。 和控制台日志'Texture::createInGL() glGenTextures()'。
我能做些什么来解决它。
Texture *theTex = new Texture(@"icon", @"png");
theTex->setUsesMipmaps(true);
SimpleIdentity theTexId = theTex->getId();
theScene->addChangeRequest(new AddTextureReq(theTex));
SingleLabel *gzLabel = [[[SingleLabel alloc] init] autorelease];
gzLabel.text = @"XXXXXX";
gzLabel.iconTexture = theTexId;
[gzLabel setLoc:GeoCoord::CoordFromDegrees(113.2759952545166, 23.117055306224895)];
[labels addObject:gzLabel];
【问题讨论】: