VedaMachineDreamcast::DCInternalTexture Class Reference

#include <VedaMachineDreamcast.h>

List of all members.


Detailed Description

Nested Class that defines a texture to render an object with VirtualMachine::RenderMesh().

Definition at line 335 of file VedaMachineDreamcast.h.

Public Member Functions

 DCInternalTexture (void)
 Constructor.
virtual void SetRenderFlags (unsigned int _flags)
 Set or change the render flags for a texture.
virtual void SetBaseColor (float _rgba[4])
 Set base color, default to 1.0f,1.0f,1.0f,1.0f.
virtual unsigned int GetRenderFlags ()
 Get the render flags for a texture.
virtual void SetImageBitmap (TextureImageLayerEnum _layerToSet, const unsigned char *_pByteChunk, unsigned int _pixelByteDepth, unsigned int _pixelWidth, unsigned int _pixelHeight)
 set an image layer for a texture. see layers with itile_... enums.

Public Attributes

Layer m_Layer [m_MaxNumberOfLayer]
 OGL texture handlers: simple map+env.
unsigned int m_flags
 current flags set
float m_BaseColorRGBA [4]
 the base color, which is modulated on mapping layer.
unsigned int m_ActiveLayerFlag
 tell which layer is active:
bool m_BitmapImageUseAlpha
 true if ARGBA were used as pixel format (then the mesh will be declared translucent)

Static Public Attributes

static const int m_MaxNumberOfLayer = 2

Classes

class  Layer
 nested class for private use. More...


Constructor & Destructor Documentation

DCInternalTexture void   ) 
 

Constructor.


Member Function Documentation

virtual unsigned int GetRenderFlags  )  [virtual]
 

Get the render flags for a texture.

Returns:
or'ed bit flags (InternalTextureFlagBitsEnum)

virtual void SetBaseColor float  _rgba[4]  )  [virtual]
 

Set base color, default to 1.0f,1.0f,1.0f,1.0f.

Parameters:
_rgba Red Green Blue and Alpha transparency components.

virtual void SetImageBitmap TextureImageLayerEnum  _layerToSet,
const unsigned char *  _pByteChunk,
unsigned int  _pixelByteDepth,
unsigned int  _pixelWidth,
unsigned int  _pixelHeight
[virtual]
 

set an image layer for a texture. see layers with itile_... enums.

Parameters:
_layerToSet the enum that define which layer to change.
_pByteChunk pointer to a byte chunk
_pixelByteDepth number of bytes per pixel in _pByteChunk.
_pixelWidth the number of pixel in a row
_pixelHeight 

virtual void SetRenderFlags unsigned int  _flags  )  [virtual]
 

Set or change the render flags for a texture.

Parameters:
_flags or'ed bit flags ( itf_... flags)


Member Data Documentation

unsigned int m_ActiveLayerFlag
 

tell which layer is active:

Definition at line 389 of file VedaMachineDreamcast.h.

float m_BaseColorRGBA[4]
 

the base color, which is modulated on mapping layer.

Definition at line 387 of file VedaMachineDreamcast.h.

bool m_BitmapImageUseAlpha
 

true if ARGBA were used as pixel format (then the mesh will be declared translucent)

Definition at line 391 of file VedaMachineDreamcast.h.

unsigned int m_flags
 

current flags set

Definition at line 385 of file VedaMachineDreamcast.h.

Layer m_Layer[m_MaxNumberOfLayer]
 

OGL texture handlers: simple map+env.

Definition at line 381 of file VedaMachineDreamcast.h.


The documentation for this class was generated from the following file:
      /\/\        4         N         k         !         N         D
                      _______  _ __ ___  _____            ___ _ _  ____
     ___________  __//___   /________  |/    / ___________\_______/    \
    /   _   _   \/   _     /    _   /      _/_/____/    _       __     /
   /    /   /       /     /    /    \      \/     /    /    \   \     /
  \\___/___/___/    ¯    _____/_____/       ______\___/_____/\________\\
               \________/_ ___ __ l____\      /elD!  
                 http://www.m4nkind.com \____/