CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoType::CTexture Class Referenceabstract

#include <cartotype_graphics_context.h>

Inheritance diagram for CartoType::CTexture:
CartoType::CBitmapTexture

Public Member Functions

virtual const TBitmapBitmap () const =0
 
virtual void GetBounds (TRect &aRect) const =0
 
virtual bool IsEmpty () const =0
 

Detailed Description

Textures are bitmaps that can be drawn using an arbitrary 2D transformation. They are usually implemented by graphics acceleration systems. The CTexture class is an abstract base class to be implemented by a graphics library such as OpenGL.

Member Function Documentation

◆ Bitmap()

virtual const TBitmap * CartoType::CTexture::Bitmap ( ) const
pure virtual

Returns the bitmap representing the texture, if any.

Implemented in CartoType::CBitmapTexture.

◆ GetBounds()

virtual void CartoType::CTexture::GetBounds ( TRect aRect) const
pure virtual

Returns the bounds of the texture in pixels.

Implemented in CartoType::CBitmapTexture.

◆ IsEmpty()

virtual bool CartoType::CTexture::IsEmpty ( ) const
pure virtual

Returns true if the texture is empty.

Implemented in CartoType::CBitmapTexture.


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