In official documentation to load texture you need to have code like that:
#include "texturePool.h"
PT(Texture) tex;
tex = TexturePool::load_texture("myTexture.png");
NodePath smiley;
smiley = window->load_model(window->get_render(), "smiley.egg");
smiley.set_texture(tex, 1);
But the first problem that there was no texturePool.h
, but after including pandaFramework.h
I finally included TexturePool, but after trying to use TexturePool i’m getting this error:
Incomplete type 'TexturePool' named in nested name specifier
To load texture we need to use static method TexturePool::load_texture
, but when I write TexturePool::
even IDE says that there are errors (Incomplete type 'TexturePool' named in nested name specifier
)
Any thoughts?