CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdTrVisRawTexture Class Reference

#include <TrVisRawTexture.h>

Public Member Functions

 OdTrVisRawTexture ()
 
 ~OdTrVisRawTexture ()
 
void resize (OdUInt32 width, OdUInt32 height, OdUInt32 format)
 
OdUInt32 size () const
 
OdUInt32 width () const
 
OdUInt32 height () const
 
OdUInt32 format () const
 
OdUInt8data ()
 
const OdUInt8data () const
 

Static Public Member Functions

static OdUInt32 pixelSize (OdUInt32 format)
 

Detailed Description

This class is a raw texture data. It's a lighter version of OdTrVisTexture. Not requires TR_BASE_LIB. Can be simply converted to OdTrVisTexture.

Definition at line 33 of file TrVisRawTexture.h.

Constructor & Destructor Documentation

◆ OdTrVisRawTexture()

OdTrVisRawTexture::OdTrVisRawTexture ( )
inline

Creates a new instance of an object with default parameters.

Definition at line 39 of file TrVisRawTexture.h.

◆ ~OdTrVisRawTexture()

OdTrVisRawTexture::~OdTrVisRawTexture ( )
inline

Destroys the object.

Definition at line 44 of file TrVisRawTexture.h.

Member Function Documentation

◆ data() [1/2]

OdUInt8 * OdTrVisRawTexture::data ( )
inline

Returns raw texture data.

/returns raw texture data.

Definition at line 170 of file TrVisRawTexture.h.

◆ data() [2/2]

const OdUInt8 * OdTrVisRawTexture::data ( ) const
inline

Returns raw texture data.

/returns raw texture data.

Definition at line 180 of file TrVisRawTexture.h.

◆ format()

OdUInt32 OdTrVisRawTexture::format ( ) const
inline

Returns the texture format.

/returns the texture format.

Definition at line 160 of file TrVisRawTexture.h.

◆ height()

OdUInt32 OdTrVisRawTexture::height ( ) const
inline

Returns the height of the texture in pixels.

/returns the height of the texture in pixels.

Definition at line 150 of file TrVisRawTexture.h.

◆ pixelSize()

static OdUInt32 OdTrVisRawTexture::pixelSize ( OdUInt32 format)
inlinestatic

Returns the pixel size in the texture.

Parameters
format[in] Texture format. See OdTrVisTexture::Format
Returns
the pixel size in the texture if the format is correct or 1 otherwise.

Definition at line 73 of file TrVisRawTexture.h.

◆ resize()

void OdTrVisRawTexture::resize ( OdUInt32 width,
OdUInt32 height,
OdUInt32 format )
inline

This function resizes texture.

Parameters
width[in] new texture width
height[in] new texture height
format[in] new texture format

Definition at line 56 of file TrVisRawTexture.h.

◆ size()

OdUInt32 OdTrVisRawTexture::size ( ) const
inline

Returns the total size of the texture in bytes.

/returns the total size of the texture in bytes.

Definition at line 130 of file TrVisRawTexture.h.

◆ width()

OdUInt32 OdTrVisRawTexture::width ( ) const
inline

Returns the width of the texture in pixels.

/returns the width of the texture in pixels.

Definition at line 140 of file TrVisRawTexture.h.


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