COPASI API  4.40.278
CLSimpleImageTexturizer Class Reference

#include <CLSimpleImageTexturizer.h>

Inheritance diagram for CLSimpleImageTexturizer:
[legend]

Public Member Functions

virtual CLTextureSpecoperator() (const std::string &filename, const std::string &basedir)
 

Protected Member Functions

CLTextureSpeccreate_texture_for_image (const std::string &filename, const std::string &basedir)
 
CLTextureSpeccreate_texture_for_jpeg_image (const std::string &filename)
 
CLTextureSpeccreate_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)
 

Member Function Documentation

◆ create_texture_for_image()

CLTextureSpec * CLSimpleImageTexturizer::create_texture_for_image ( 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()().

◆ create_texture_for_jpeg_image()

CLTextureSpec * CLSimpleImageTexturizer::create_texture_for_jpeg_image ( const std::string &  filename)
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().

◆ create_texture_for_png_image()

CLTextureSpec * CLSimpleImageTexturizer::create_texture_for_png_image ( const std::string &  filename)
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().

◆ operator()()

CLTextureSpec * CLSimpleImageTexturizer::operator() ( const std::string &  filename,
const std::string &  basedir 
)
virtual

The documentation for this class was generated from the following files: