VISH  0.2
Public Member Functions | Public Attributes
Wizt::Colorizer Class Reference

A vish object component (aka vish skale) that references some colormap and takes care of its parameter handling. More...

#include </home/werner/origo/vish/ocean/Anemonia/Colorizer.hpp>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

A vish object component (aka vish skale) that references some colormap and takes care of its parameter handling.


Constructor & Destructor Documentation

Wizt::Colorizer::Colorizer ( VObject that,
const string slotname = "colormap",
int  EL = 0,
const string defaultcolormap = "default",
bool  CreateNewColormapObjectIfNotYetExistant = true 
)

Construct a colorizer object.

Parameters:
ELThe Expert Level for this colormap slot. Values larger than zero will make this slot invisible on object creation.
defaultcolormapA creation preference for a colormap that shall be created when no colormap exists yet.
Wizt::Colorizer::Colorizer ( VObject that,
const string slotname,
const RefPtr< VCreationPreferences > &  VP,
int  EL = 0,
bool  CreateNewColormapObjectIfNotYetExistant = true 
)

Construct a colorizer object.

Parameters:
ELThe Expert Level for this colormap slot. Values larger than zero will make this slot invisible on object creation.
VPCreation preference for a colormap that shall be created when no colormap exists yet.

Member Function Documentation

MemCore::RefPtr< RenderBasin::TextureTentacle > Wizt::Colorizer::makeColormapTexture ( VRenderContext Context,
const RefPtr< RenderBasin::Program > &  ShaderProgram,
int  TextureUnit,
const string ShaderTexturename = "" 
) const

Minimalistic colormap shader:

           uniform sampler1D ColormapTexture;
           void main (void)
           {
                   gl_FragColor = texture1D(ColormapTexture, gl_TexCoord[1].r );
           }
Parameters:
ShaderTexturenameIf defined, assign to this specific name of the uniform sampler1D variable in the fragment shader, otherwise use the same name as the slot.

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