COPASI API
4.40.278
|
#include <CLSimpleImageTexturizer.h>
Public Member Functions | |
virtual CLTextureSpec * | operator() (const std::string &filename, const std::string &basedir) |
Protected Member Functions | |
CLTextureSpec * | create_texture_for_image (const std::string &filename, const std::string &basedir) |
CLTextureSpec * | create_texture_for_jpeg_image (const std::string &filename) |
CLTextureSpec * | create_texture_for_png_image (const std::string &filename) |
Additional Inherited Members | |
Static Protected Member Functions inherited from CLImageTexturizer | |
static std::string | to_absolute_path (const std::string &filename, const std::string &basedir) |
|
protected |
This method creates a texture from a given image file. It is up to the caller to free the texture space once it is no longer needed. If no texture could be created, NULL is returned.
References create_texture_for_jpeg_image(), create_texture_for_png_image(), and CLImageTexturizer::to_absolute_path().
Referenced by operator()().
|
protected |
This method creates a texture from a given JPEG image file. It is up to the caller to free the texture space once it is no longer needed. If no texture could be created, NULL is returned.
References GL_CLAMP_TO_EDGE, CLTextureSpec::mNumComponents, CLTextureSpec::mTextHeight, CLTextureSpec::mTextureHeight, CLTextureSpec::mTextureName, CLTextureSpec::mTextureWidth, and CLTextureSpec::mTextWidth.
Referenced by create_texture_for_image().
|
protected |
This method creates a texture from a given PNG image file. It is up to the caller to free the texture space once it is no longer needed. If no texture could be created, NULL is returned.
References GL_CLAMP_TO_EDGE, CLTextureSpec::mNumComponents, CLTextureSpec::mTextHeight, CLTextureSpec::mTextureHeight, CLTextureSpec::mTextureName, CLTextureSpec::mTextureWidth, and CLTextureSpec::mTextWidth.
Referenced by create_texture_for_image().
|
virtual |
Implements CLImageTexturizer.
References create_texture_for_image().