Пример #1
0
  private GTexture getTexture() {
    if (_texture == null) {
      _texture = initializeTexture();
      if ((_texture == null) || !_texture.hasGLTexture()) {
        return null;
      }

      _textureWidth = _texture.getWidth();
      _textureHeight = _texture.getHeight();
    }

    return _texture;
  }