tangram-es,没有可运行的范例,AI胡说八道
有人说你用AI啊。好的找到了一些结果如下我想问的是AI从哪里找到的还是自己瞎编的代码1Tangram::Map map(1920, 1080); est.cpp:15:35: error: no matching function for call to ‘Tangram::Map::Map(const int, const int)’ 15 | Tangram::Map map(WIDTH, HEIGHT);代码2TangramMap* map tangram_map_create(WIDTH, HEIGHT); test.cpp:16:5: error: ‘TangramMap’ was not declared in this scope; did you mean ‘Tangram’? 16 | TangramMap* map tangram_map_create(WIDTH, HEIGHT); | ^~~~~~~~~~ | Tangram test.cpp:16:17: error: ‘map’ was not declared in this scope 16 | TangramMap* map tangram_map_create(WIDTH, HEIGHT); | ^~~ test.cpp:16:23: error: ‘tangram_map_create’ was not declared in this scope 16 | TangramMap* map tangram_map_create(WIDTH, HEIGHT);代码3// 1. 创建 Tangram 实例 Tangram::Map map; // 2. 加载场景文件 (YAML格式) // 可以是本地文件或网络URL map.loadScene(scene.yaml); test.cpp:19:18: error: no matching function for call to ‘Tangram::Map::Map()’ 19 | Tangram::Map map;代码4这代码到底是从哪里搞到的#include tangram/tangram.h #include tangram/mbtiles_source.h #include tangram/terrain/terrain_decoder.h #include tangram/image_writer.h int main(int argc, char** argv) { // 1. 初始化Tangram无头上下文 tangram::Engine engine;简单分析从报错来看构造map需要platform。没有范例就放弃了没有什么意义。