COPASI API
4.16.103
|
#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 std::string | to_absolute_path (const std::string &filename, const std::string &basedir) |
Definition at line 21 of file CLSimpleImageTexturizer.h.
|
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.
Definition at line 26 of file CLSimpleImageTexturizer.cpp.
References create_texture_for_jpeg_image(), create_texture_for_png_image(), CLImageTexturizer::to_absolute_path(), and transform().
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.
Definition at line 61 of file CLSimpleImageTexturizer.cpp.
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.
Definition at line 181 of file CLSimpleImageTexturizer.cpp.
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.
Definition at line 16 of file CLSimpleImageTexturizer.cpp.
References create_texture_for_image().