OGLMachine::OGLInternalTexture Class Reference

#include <OGLMachine.h>

List of all members.


Detailed Description

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

Definition at line 404 of file OGLMachine.h.

Public Member Functions

 OGLInternalTexture (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:
GLuint m_frameBuffer
 in case of render to texture with render extension:
GLuint m_depthRenderBuffer
 in case of render to texture with render extension:

Static Public Attributes

static const int m_MaxNumberOfLayer = 2

Classes

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


Constructor & Destructor Documentation

OGLInternalTexture 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 454 of file OGLMachine.h.

float m_BaseColorRGBA[4]
 

the base color, which is modulated on mapping layer.

Definition at line 452 of file OGLMachine.h.

GLuint m_depthRenderBuffer
 

in case of render to texture with render extension:

Definition at line 458 of file OGLMachine.h.

unsigned int m_flags
 

current flags set

Definition at line 450 of file OGLMachine.h.

GLuint m_frameBuffer
 

in case of render to texture with render extension:

Definition at line 456 of file OGLMachine.h.

Layer m_Layer[m_MaxNumberOfLayer]
 

OGL texture handlers: simple map+env.

Definition at line 448 of file OGLMachine.h.


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