Handles the TKE_Texture opcode. More...

#include <BOpcodeHandler.h>

Public Member Functions

TK_Status Clone (BStreamFileToolkit &tk, BBaseOpcodeHandler **handler) const
 
int GetAlphaMapping () const
 
int GetApplicationMode () const
 
int GetBlueMapping () const
 
char const * GetCamera () const
 
char * GetCamera ()
 
int GetDecimation () const
 
int GetFlags () const
 
int GetGreenMapping () const
 
char const * GetImage () const
 
char * GetImage ()
 
int GetInterpolation () const
 
int GetLayout () const
 
char const * GetName () const
 
char * GetName ()
 
int GetParameterFunction () const
 
int GetParameterOffset () const
 
int GetParameterSource () const
 
int GetRedMapping () const
 
char const * GetShaderSource () const
 
char * GetShaderSource ()
 
int GetTiling () const
 
char const * GetTransform () const
 
char * GetTransform ()
 
float const * GetValueScale () const
 
TK_Status Read (BStreamFileToolkit &tk)
 
TK_Status ReadAscii (BStreamFileToolkit &tk)
 Deprecated.
 
void Reset ()
 
void SetAlphaMapping (int p)
 
void SetApplicationMode (int p)
 
void SetBlueMapping (int p)
 
void SetCamera (char const *camera)
 
void SetCamera (int length)
 
void SetDecimation (int p)
 
void SetFlags (int f)
 
void SetGreenMapping (int p)
 
void SetImage (char const *image)
 
void SetImage (int length)
 
void SetInterpolation (int p)
 
void SetLayout (int p)
 
void SetName (char const *name)
 
void SetName (int length)
 
void SetParameterFunction (int p)
 
void SetParameterOffset (int p)
 
void SetParameterSource (int p)
 
void SetRedMapping (int p)
 
void SetShaderSource (char const *shader_source)
 
void SetShaderSource (int length)
 
void SetTiling (int p)
 
void SetTransform (char const *transform)
 
void SetTransform (int length)
 
void SetValueScale (float v1, float v2)
 
 TK_Texture ()
 
TK_Status Write (BStreamFileToolkit &tk)
 
TK_Status WriteAscii (BStreamFileToolkit &tk)
 Deprecated.
 
- Public Member Functions inherited from BBaseOpcodeHandler
 BBaseOpcodeHandler (int op)
 
virtual TK_Status Execute (BStreamFileToolkit &tk)
 
unsigned char General_Flags () const
 
char const * GetLoggingString () const
 
char * GetLoggingString ()
 
virtual TK_Status Interpret (BStreamFileToolkit &tk, ID_Key key, int variant=0)
 
virtual TK_Status Interpret (BStreamFileToolkit &tk, ID_Key key, char const *special)
 
bool IsCollectionPart () const
 
void LogDebug (BStreamFileToolkit &tk, char const *string=0)
 
virtual bool Match_Instance (BStreamFileToolkit const &tk, Recorded_Instance *instance)
 
virtual bool NeedsContext (BStreamFileToolkit &tk) const
 
bool NeedsTag () const
 
unsigned char Opcode () const
 
int Pass (BStreamFileToolkit &tk) const
 
void Set_General_Flags (int f)
 
void SetCollectionPart (bool n)
 
void SetLoggingString (char const *segment)
 
void SetLoggingString (int length)
 
void SetNeedsTag (bool n)
 
TK_Status Tag (BStreamFileToolkit &tk, int variant=-1) const
 
bool Tagging (BStreamFileToolkit &tk) const
 
- Public Member Functions inherited from BControlledMemoryObject
void operator delete (void *p)
 force deallocation to happen in the stream toolkit's scope
 
void * operator new (size_t size)
 force allocation to happen in the stream toolkit's scope
 

Protected Member Functions

void set_image (int length)
 for internal use only
 
void set_image (char const *image)
 for internal use only
 
void set_name (int length)
 for internal use only
 
void set_name (char const *name)
 for internal use only
 
void set_transform (int length)
 for internal use only
 
void set_transform (char const *transform)
 for internal use only
 
- Protected Member Functions inherited from BBaseOpcodeHandler
void add_segment (BStreamFileToolkit &tk, ID_Key key)
 for internal use only
 
void adjust_written (BStreamFileToolkit &tk, int count)
 for internal use only
 
void bytes_to_floats (unsigned char const *in, float *out, int count) const
 for internal use only
 
void decrease_nesting (BStreamFileToolkit &tk, int amount=1)
 for internal use only
 
bool Find_Instance (BStreamFileToolkit &tk, int val1, int val2, int val3)
 
bool Find_Item (BStreamFileToolkit &tk, ID_Key key) const
 
void floats_to_bytes (float const *in, unsigned char *out, int count) const
 for internal use only
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, int *rInts, unsigned int n)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned char &value)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, char &value)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned short &value)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, short &value)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, int &value)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, float &value)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, float *rFloats, unsigned int n)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, char *m_string, unsigned int n)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned char *m_string, unsigned int n)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, int *rInts, unsigned int n)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, short *rShorts, unsigned int n)
 
TK_Status GetAsciiData (BStreamFileToolkit &tk, const char *tag, unsigned short *rShorts, unsigned int n)
 
TK_Status GetAsciiHex (BStreamFileToolkit &tk, const char *tag, unsigned char &value)
 
TK_Status GetAsciiHex (BStreamFileToolkit &tk, const char *tag, int &value)
 
TK_Status GetAsciiHex (BStreamFileToolkit &tk, const char *tag, char &value)
 
TK_Status GetAsciiHex (BStreamFileToolkit &tk, const char *tag, unsigned short &value)
 
TK_Status GetAsciiImageData (BStreamFileToolkit &tk, const char *tag, unsigned char *rValues, unsigned int n)
 
TK_Status GetGeneral (BStreamFileToolkit &tk)
 
void increase_nesting (BStreamFileToolkit &tk, int amount=1)
 for internal use only
 
ID_Key last_key (BStreamFileToolkit &tk) const
 obsolete
 
void log_opcode (BStreamFileToolkit &tk, unsigned int sequence, unsigned char opcode)
 for internal use only
 
BBaseOpcodeHandlerOpcode_Handler (BStreamFileToolkit &tk, unsigned char op) const
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, char const *b, int n)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, short const *s, int n)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, int const *i, int n)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, float const *f, int n)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned char const *b, int n)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned short const *s, int n)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned int const *i, int n)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, char const &c)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, short const &s)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, int const &i)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned char const &b)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned short const &s)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, unsigned int const &i)
 
TK_Status PutAsciiData (BStreamFileToolkit &tk, char const *tag, float const &f)
 
TK_Status PutAsciiFlag (BStreamFileToolkit &tk, char const *tag, int const &i)
 
TK_Status PutAsciiHex (BStreamFileToolkit &tk, char const *tag, int const &i)
 
TK_Status PutAsciiMask (BStreamFileToolkit &tk, char const *tag, int const &i)
 
TK_Status PutAsciiOpcode (BStreamFileToolkit &tk, int adjust=1, bool is_end=false, bool want_newline=true)
 
TK_Status PutEndXMLTag (BStreamFileToolkit &tk, char const *tag)
 
TK_Status PutGeneral (BStreamFileToolkit &tk)
 
TK_Status PutOpcode (BStreamFileToolkit &tk, int adjust=1)
 
TK_Status PutStartXMLTag (BStreamFileToolkit &tk, char const *tag)
 
TK_Status Read_Referenced_Segment (BStreamFileToolkit &tk, int &i_progress)
 
TK_Status ReadAsciiLine (BStreamFileToolkit &tk, unsigned int *readSize=0)
 
TK_Status ReadAsciiWord (BStreamFileToolkit &tk, unsigned int *readSize=0)
 
TK_Status ReadEndOpcode (BStreamFileToolkit &tk)
 
void Record_Instance (BStreamFileToolkit &tk, ID_Key key, int variant, int val1, int val2, int val3) const
 
void Remember_Item (BStreamFileToolkit &tk, ID_Key key) const
 
ID_Key remove_segment (BStreamFileToolkit &tk)
 for internal use only
 
bool RemoveAngularBrackets (char *string)
 
bool RemoveQuotes (char *string)
 
void Revisit (BStreamFileToolkit &tk, float priority=0.0f, int variant=0) const
 
void set_last_key (BStreamFileToolkit &tk, ID_Key key)
 sets the given key as "most recent" on the toolkit for the purposes of associating keys with indices
 
TK_Status SkipNewlineAndTabs (BStreamFileToolkit &tk, unsigned int *readSize=0)
 
bool validate_count (int count, int limit=1<< 24) const
 

Protected Attributes

char m_alpha_mapping
 
char m_apply_mode
 
char m_blue_mapping
 
char * m_camera
 
int m_camera_length
 
char m_decimation
 
int m_flags
 
char m_green_mapping
 
char * m_image
 
int m_image_length
 
char m_interpolation
 
char m_layout
 
char * m_name
 
int m_name_length
 
char m_param_function
 
char m_param_offset
 
char m_param_source
 
char m_red_mapping
 
char * m_shader_source
 
int m_shader_source_length
 
int m_source_dimensions [3]
 
int m_substage
 
char m_tiling
 
char * m_transform
 
float m_value_scale [2]
 
- Protected Attributes inherited from BBaseOpcodeHandler
char * m_ascii_buffer
 
int m_ascii_length
 
int m_ascii_progress
 Tracks the amount of data that has been read/written so far by GetAscii functions.
 
int m_ascii_size
 
int m_ascii_stage
 
unsigned char m_byte
 temporary
 
char m_char
 temporary
 
bool m_collection_part
 Indicates if this object is part of a LOD collection.
 
int m_debug_allocated
 
char * m_debug_string
 
unsigned char m_general_flags
 Basic flags common to many handlers.
 
int m_int
 temporary
 
bool m_needs_tag
 Indicate if this object explicitly needs tagging.
 
unsigned char m_opcode
 The opcode being handled by this particular object.
 
int m_progress
 Tracks the amount of data that has been read/written so far.
 
int m_stage
 The writing stage.
 
unsigned short m_unsigned_short
 temporary
 

Additional Inherited Members

- Static Protected Member Functions inherited from BBaseOpcodeHandler
static void fix (int *i, int n)
 for internal use only
 
static void fix (short *s, int n)
 for internal use only
 
static void fix_in (float *f, int n)
 for internal use only
 
static void fix_in (double *d, int n)
 for internal use only
 
static void fix_out (float *f, int n)
 for internal use only
 
static void fix_out (double *d, int n)
 for internal use only
 
static short flip (short s)
 for internal use only
 
static int flip (int i)
 for internal use only
 
static TK_Status GetData (BStreamFileToolkit &tk, char *b, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, short *s, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, int *i, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, float *f, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, double *d, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, unsigned char *b, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, unsigned short *s, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, unsigned int *i, int n)
 
static TK_Status GetData (BStreamFileToolkit &tk, char &c)
 
static TK_Status GetData (BStreamFileToolkit &tk, short &s)
 
static TK_Status GetData (BStreamFileToolkit &tk, int &i)
 
static TK_Status GetData (BStreamFileToolkit &tk, unsigned char &b)
 
static TK_Status GetData (BStreamFileToolkit &tk, unsigned short &s)
 
static TK_Status GetData (BStreamFileToolkit &tk, unsigned int &i)
 
static TK_Status GetData (BStreamFileToolkit &tk, float &f)
 
static TK_Status GetData (BStreamFileToolkit &tk, double &d)
 
static TK_Status LookatData (BStreamFileToolkit &tk, unsigned char &b)
 
static TK_Status PutData (BStreamFileToolkit &tk, char const *b, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, short const *s, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, int const *i, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, float const *f, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, double const *d, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, unsigned char const *b, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, unsigned short const *s, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, unsigned int const *i, int n)
 
static TK_Status PutData (BStreamFileToolkit &tk, char const &c)
 
static TK_Status PutData (BStreamFileToolkit &tk, short const &s)
 
static TK_Status PutData (BStreamFileToolkit &tk, int const &i)
 
static TK_Status PutData (BStreamFileToolkit &tk, unsigned char const &b)
 
static TK_Status PutData (BStreamFileToolkit &tk, unsigned short const &s)
 
static TK_Status PutData (BStreamFileToolkit &tk, unsigned int const &i)
 
static TK_Status PutData (BStreamFileToolkit &tk, float const &f)
 
static TK_Status PutData (BStreamFileToolkit &tk, double const &d)
 
static float read_float (char const *cp, char const **newcpp=0)
 
static float read_float (char const *cp, char **newcpp)
 for internal use only
 
static char * write_float (char *buffer, double f)
 for internal use only
 

Detailed Description

Handles the TKE_Texture opcode.

TK_Texture provides support for writing/reading the TKE_Texture opcode object to/from an HSF file.

The HOOPS/3dGS scene-graph supports 'textures', which define an image that can be applied to a HOOPS/3dGS shell or mesh primitive.

Constructor & Destructor Documentation

◆ TK_Texture()

TK_Texture::TK_Texture ( )
inline

constructor

Member Function Documentation

◆ Clone()

TK_Status TK_Texture::Clone ( BStreamFileToolkit tk,
BBaseOpcodeHandler **  handler 
) const
virtual

Copies the opcode handler

Parameters
tkA reference to the BStreamFileToolkit object.
handlerA pointer to the opcode handler object. Passed by reference.
Returns
The result of the function call.

Reimplemented from BBaseOpcodeHandler.

◆ GetAlphaMapping()

int TK_Texture::GetAlphaMapping ( ) const
inline

Returns the alpha channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ GetApplicationMode()

int TK_Texture::GetApplicationMode ( ) const
inline

Returns the decal & modulate mode. Tiling modes are specified in TKO_Texture_Application_Modes.

◆ GetBlueMapping()

int TK_Texture::GetBlueMapping ( ) const
inline

Returns the blue channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ GetCamera() [1/2]

char const* TK_Texture::GetCamera ( ) const
inline

Returns the camera segment name

◆ GetCamera() [2/2]

char* TK_Texture::GetCamera ( )
inline

Returns the camera segment name buffer, which can be modified directly

◆ GetDecimation()

int TK_Texture::GetDecimation ( ) const
inline

Returns the decimation filter. Filter types are defined in TKO_Texture_Filters.

◆ GetFlags()

int TK_Texture::GetFlags ( ) const
inline

Returns the mask indicating which texture options are specified. Options are defined in TKO_Texture_Option_Bits.

◆ GetGreenMapping()

int TK_Texture::GetGreenMapping ( ) const
inline

Returns the green channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ GetImage() [1/2]

char const* TK_Texture::GetImage ( ) const
inline

Returns the image name

◆ GetImage() [2/2]

char* TK_Texture::GetImage ( )
inline

Returns the image name buffer, which can be modified directly

◆ GetInterpolation()

int TK_Texture::GetInterpolation ( ) const
inline

Returns the interpolation filter. Filter types are defined in TKO_Texture_Filters.

◆ GetLayout()

int TK_Texture::GetLayout ( ) const
inline

Returns the layout of the data in the image. Layouts are specified in TKO_Texture_Layouts.

◆ GetName() [1/2]

char const* TK_Texture::GetName ( ) const
inline

Returns the texture name

◆ GetName() [2/2]

char* TK_Texture::GetName ( )
inline

Returns the texture name buffer, which can be modified directly

◆ GetParameterFunction()

int TK_Texture::GetParameterFunction ( ) const
inline

Returns the parameterization function. Functions are defined in TKO_Texture_Param_Functions.

◆ GetParameterOffset()

int TK_Texture::GetParameterOffset ( ) const
inline

Returns the parameter offset.

◆ GetParameterSource()

int TK_Texture::GetParameterSource ( ) const
inline

Returns the parameterization source. Options are defined in TKO_Texture_Param_Sources

◆ GetRedMapping()

int TK_Texture::GetRedMapping ( ) const
inline

Returns the red channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ GetShaderSource() [1/2]

char const* TK_Texture::GetShaderSource ( ) const
inline

Returns the texture shader source

◆ GetShaderSource() [2/2]

char* TK_Texture::GetShaderSource ( )
inline

Returns the texture shader source buffer, which can be modified directly

◆ GetTiling()

int TK_Texture::GetTiling ( ) const
inline

Returns the texture tiling mode. Tiling modes are specified in TKO_Texture_Tilings.

◆ GetTransform() [1/2]

char const* TK_Texture::GetTransform ( ) const
inline

Returns the transform segment name

◆ GetTransform() [2/2]

char* TK_Texture::GetTransform ( )
inline

Returns the transform segment name buffer, which may be modified directly

◆ GetValueScale()

float const* TK_Texture::GetValueScale ( ) const
inline

Returns the value scale & offset factors

◆ Read()

TK_Status TK_Texture::Read ( BStreamFileToolkit tk)
virtual

Reads data from the toolkit buffer, decodes/decompresses it, and maps it to the opcode handlers data members. User-defined classes which need to write out custom data should utilize one of the available GetData() methods.

Parameters
tkA reference to the BStreamFileToolkit object.
Returns
The result of the function call.

Implements BBaseOpcodeHandler.

◆ Reset()

void TK_Texture::Reset ( )
virtual

Resets the current opcode handler. This is called by the toolkit when it is done processing an opcode. This method reinitializes any opcode handler variables and frees up temporary data.

Reimplemented from BBaseOpcodeHandler.

◆ SetAlphaMapping()

void TK_Texture::SetAlphaMapping ( int  p)
inline

Sets the alpha channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ SetApplicationMode()

void TK_Texture::SetApplicationMode ( int  p)
inline

Sets the decal & modulate modes. Modes are specified in TKO_Texture_Application_Modes.

◆ SetBlueMapping()

void TK_Texture::SetBlueMapping ( int  p)
inline

Sets the blue channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ SetCamera() [1/2]

void TK_Texture::SetCamera ( char const *  camera)

Sets the camera segment name. Allocates the buffer and copies the name string

◆ SetCamera() [2/2]

void TK_Texture::SetCamera ( int  length)

Sets the camera segment name buffer. Allocates a buffer large enough to hold a string of 'length' characters

◆ SetDecimation()

void TK_Texture::SetDecimation ( int  p)
inline

Sets the decimation filter. Filter types are defined in TKO_Texture_Filters.

◆ SetFlags()

void TK_Texture::SetFlags ( int  f)
inline

Sets the mask indicating which texture options are specified. Options are defined in TKO_Texture_Option_Bits.

◆ SetGreenMapping()

void TK_Texture::SetGreenMapping ( int  p)
inline

Sets the green channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ SetImage() [1/2]

void TK_Texture::SetImage ( char const *  image)
inline

Sets the image name. Allocates the buffer and copies the name string

◆ SetImage() [2/2]

void TK_Texture::SetImage ( int  length)
inline

Sets the image name buffer. Allocates a buffer large enough to hold a string of 'length' characters

◆ SetInterpolation()

void TK_Texture::SetInterpolation ( int  p)
inline

Sets the interpolation filter. Filter types are defined in TKO_Texture_Filters.

◆ SetLayout()

void TK_Texture::SetLayout ( int  p)
inline

Sets the layout of the data in the image. Layouts are specified in TKO_Texture_Layouts.

◆ SetName() [1/2]

void TK_Texture::SetName ( char const *  name)
inline

Sets the texture name. Allocates the buffer and copies the name string

◆ SetName() [2/2]

void TK_Texture::SetName ( int  length)
inline

Sets the texture name buffer. Allocates a buffer large enough to hold a string of 'length' characters

◆ SetParameterFunction()

void TK_Texture::SetParameterFunction ( int  p)
inline

Sets the parameterization function. Functions are defined in TKO_Texture_Param_Functions.

◆ SetParameterOffset()

void TK_Texture::SetParameterOffset ( int  p)
inline

Sets the parameter offset.

◆ SetParameterSource()

void TK_Texture::SetParameterSource ( int  p)
inline

Sets the parameterization source. Options are defined in TKO_Texture_Param_Sources

◆ SetRedMapping()

void TK_Texture::SetRedMapping ( int  p)
inline

Sets the red channel mapping. Mappings are defined in TKO_Texture_Channel_Mappings.

◆ SetShaderSource() [1/2]

void TK_Texture::SetShaderSource ( char const *  shader_source)

Sets the texture shader source. Allocates the buffer and copies the shader source string

◆ SetShaderSource() [2/2]

void TK_Texture::SetShaderSource ( int  length)

Sets the texture shader source buffer. Allocates a buffer large enough to hold a string of 'length' characters

◆ SetTiling()

void TK_Texture::SetTiling ( int  p)
inline

Sets the texture tiling mode. Tiling modes are specified in TKO_Texture_Tilings.

◆ SetTransform() [1/2]

void TK_Texture::SetTransform ( char const *  transform)
inline

Sets the name of the segment containing a texture transform matrix. Allocates the buffer and copies the string

◆ SetTransform() [2/2]

void TK_Texture::SetTransform ( int  length)
inline

Sets the buffer to contain the name of a transform segment. Allocates a buffer large enough to hold 'length' characters

◆ SetValueScale()

void TK_Texture::SetValueScale ( float  v1,
float  v2 
)
inline

Sets the value scale & offset factors

◆ Write()

TK_Status TK_Texture::Write ( BStreamFileToolkit tk)
virtual

Encodes/compresses data and writes data to the toolkit buffer. User-defined classes which need to write out custom data should utilize one of the available PutData() methods, and first write out the opcode associated with the group of binary data followed by the data itself.

Parameters
tkA reference to the BStreamFileToolkit object.
Returns
The result of the function call.

Implements BBaseOpcodeHandler.

Member Data Documentation

◆ m_alpha_mapping

char TK_Texture::m_alpha_mapping
protected

internal use; Method for remapping alpha channel value

◆ m_apply_mode

char TK_Texture::m_apply_mode
protected

internal use; bits showing setting of decal and/or modulate

◆ m_blue_mapping

char TK_Texture::m_blue_mapping
protected

internal use; Method for remapping blue channel value

◆ m_camera

char* TK_Texture::m_camera
protected

internal use; Camera segment name

◆ m_camera_length

int TK_Texture::m_camera_length
protected

internal use; camera name length

◆ m_decimation

char TK_Texture::m_decimation
protected

internal use; Method of pixel decimation (pixel covers large portion of texture)

◆ m_flags

int TK_Texture::m_flags
protected

internal use; Flags indicating presence of optional values

◆ m_green_mapping

char TK_Texture::m_green_mapping
protected

internal use; Method for remapping green channel value

◆ m_image

char* TK_Texture::m_image
protected

internal use; Source image name

◆ m_image_length

int TK_Texture::m_image_length
protected

internal use; Current image name length

◆ m_interpolation

char TK_Texture::m_interpolation
protected

internal use; Method of pixel interpolation (pixel falls between texture samples)

◆ m_layout

char TK_Texture::m_layout
protected

internal use; Format of "picture" within source image

◆ m_name

char* TK_Texture::m_name
protected

internal use; Texture name

◆ m_name_length

int TK_Texture::m_name_length
protected

internal use; current name length

◆ m_param_function

char TK_Texture::m_param_function
protected

internal use; Basic parameter remapping methods

◆ m_param_offset

char TK_Texture::m_param_offset
protected

internal use; offset into parameter value array

◆ m_param_source

char TK_Texture::m_param_source
protected

internal use; Source of parameters used for texture lookup

◆ m_red_mapping

char TK_Texture::m_red_mapping
protected

internal use; Method for remapping red channel value

◆ m_shader_source

char* TK_Texture::m_shader_source
protected

internal use; Shader source code (null if not a shader)

◆ m_shader_source_length

int TK_Texture::m_shader_source_length
protected

internal use; Shader source code length

◆ m_source_dimensions

int TK_Texture::m_source_dimensions[3]
protected

internal use; The number of images in each direction (e.g. for 3d textures)

◆ m_substage

int TK_Texture::m_substage
protected

internal use: write/read progress

◆ m_tiling

char TK_Texture::m_tiling
protected

internal use; Handling of parametric values outside 0 to 1 range

◆ m_transform

char* TK_Texture::m_transform
protected

internal use; Segment containing transform matrix

◆ m_value_scale

float TK_Texture::m_value_scale[2]
protected

internal use; "Brightness & Contrast" scaling of texture values


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