VirtualMachine::InternalTexture Class Reference
[VirtualMachine 3D Render Methods]

#include <VirtualMachine.h>

List of all members.


Detailed Description

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

Definition at line 217 of file VirtualMachine.h.

Public Types

enum  InternalTextureFlagBitsEnum { itf_Filtered = 1 }
 InternalTexture::SetRenderFlags() enum. More...
enum  TextureImageLayerEnum { itile_TextureMapping = 0, itile_Environment }
 InternalTexture image layer enum to use with SetImageBitmap(). More...

Public Member Functions

virtual void SetRenderFlags (unsigned int _flags)=0
 Set or change the render flags for a texture.
virtual void SetBaseColor (float _rgba[4])=0
 Set base color, default to 1.0f,1.0f,1.0f,1.0f.
virtual unsigned int GetRenderFlags ()=0
 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)=0
 set an image layer for a texture. see layers with a TextureImageLayerEnum enums.


Member Enumeration Documentation

enum InternalTextureFlagBitsEnum
 

InternalTexture::SetRenderFlags() enum.

Enumerator:
itf_Filtered  Bilinear filtering.

Definition at line 220 of file VirtualMachine.h.

enum TextureImageLayerEnum
 

InternalTexture image layer enum to use with SetImageBitmap().

Enumerator:
itile_TextureMapping  for texture mapping layer
itile_Environment  for environment layer

Definition at line 257 of file VirtualMachine.h.


Member Function Documentation

virtual unsigned int GetRenderFlags  )  [pure virtual]
 

Get the render flags for a texture.

Returns:
or'ed bit flags (InternalTextureFlagBitsEnum)

virtual void SetBaseColor float  _rgba[4]  )  [pure 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
[pure virtual]
 

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

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

virtual void SetRenderFlags unsigned int  _flags  )  [pure virtual]
 

Set or change the render flags for a texture.

Parameters:
_flags or'ed bit flags ( InternalTextureFlagBitsEnum)


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